mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-28 09:51:06 -06:00
SDA-1703: fix issue with opening deleted files in download manager (#855)
Signed-off-by: Vishwas Shashidhar <vishwas.shashidhar@symphony.com>
This commit is contained in:
parent
1ec78f06f6
commit
b2cbf2605a
@ -358,7 +358,7 @@ export const downloadManagerAction = (type, filePath): void => {
|
||||
}
|
||||
|
||||
if (type === 'open') {
|
||||
const openResponse = electron.shell.openExternal(`file:///${filePath}`);
|
||||
const openResponse = electron.shell.openItem(`${filePath}`);
|
||||
if (!openResponse && focusedWindow && !focusedWindow.isDestroyed()) {
|
||||
electron.dialog.showMessageBox(focusedWindow, {
|
||||
message,
|
||||
|
Loading…
Reference in New Issue
Block a user