mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-29 02:11:28 -06:00
SDA-2710 Changes after code review
This commit is contained in:
parent
170681750e
commit
2d5efdc920
@ -296,20 +296,19 @@ class ScreenSnippet {
|
||||
data,
|
||||
type,
|
||||
};
|
||||
this.deleteFile(snippetData.screenSnippetPath);
|
||||
logger.info(
|
||||
`screen-snippet-handler: Snippet captured! Sending data to SFE`,
|
||||
);
|
||||
webContents.send('screen-snippet-data', payload);
|
||||
await this.verifyAndUpdateAlwaysOnTop();
|
||||
}
|
||||
catch (error) {
|
||||
} catch (error) {
|
||||
await this.verifyAndUpdateAlwaysOnTop();
|
||||
logger.error(
|
||||
`screen-snippet-handler: screen capture failed with error: ${error}!`,
|
||||
);
|
||||
} finally {
|
||||
this.deleteFile(snippetData.screenSnippetPath);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user