mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-28 09:51:06 -06:00
Merge pull request #1167 from johankwarnmarksymphony/sda-2836
fix: SDA-2836: If no capture, don't show annotate window
This commit is contained in:
commit
3a16b7ef19
@ -117,11 +117,17 @@ class ScreenSnippet {
|
||||
logger.error('screen-snippet-handler: Could not get image size');
|
||||
return;
|
||||
}
|
||||
|
||||
if (dimensions.width === 0 && dimensions.height === 0) {
|
||||
logger.info('screen-snippet-handler: no screen capture picture');
|
||||
return;
|
||||
}
|
||||
|
||||
windowHandler.closeSnippingToolWindow();
|
||||
windowHandler.createSnippingToolWindow(this.outputFilePath, dimensions);
|
||||
this.uploadSnippet(webContents);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
const {
|
||||
message,
|
||||
data,
|
||||
|
Loading…
Reference in New Issue
Block a user