[MM-29677] fix download complete notification not appearing (#1388)

This commit is contained in:
Guillermo Vayá 2020-10-14 22:42:08 +02:00 committed by GitHub
parent 67179c0b31
commit 9ceb38402a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -632,7 +632,7 @@ export default class MainPage extends React.Component {
const title = process.platform === 'win32' ? item.serverInfo.name : 'Download Complete'; const title = process.platform === 'win32' ? item.serverInfo.name : 'Download Complete';
const notificationBody = process.platform === 'win32' ? `Download Complete \n ${item.fileName}` : item.fileName; const notificationBody = process.platform === 'win32' ? `Download Complete \n ${item.fileName}` : item.fileName;
await Utils.dispatchNotification(title, notificationBody, false, () => { await Utils.dispatchNotification(title, notificationBody, false, {}, () => {
shell.showItemInFolder(item.path.normalize()); shell.showItemInFolder(item.path.normalize());
}); });
} }