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:
Vishwas Shashidhar 2020-01-22 22:25:59 +05:30 committed by GitHub
parent 1ec78f06f6
commit b2cbf2605a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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