Merge pull request #1167 from johankwarnmarksymphony/sda-2836

fix: SDA-2836: If no capture, don't show annotate window
This commit is contained in:
Johan Kwarnmark 2021-01-07 18:07:03 +01:00 committed by GitHub
commit 3a16b7ef19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,