diff --git a/src/actions/notifications.ts b/src/actions/notifications.ts index 8452a60a7..9ba68892a 100644 --- a/src/actions/notifications.ts +++ b/src/actions/notifications.ts @@ -80,26 +80,26 @@ export function fireNotificationAction(notiId: string, notiProcess: string, if (ipcMain !== undefined) { ipcMain.on('fire-notification-action', - (event: Electron.Event, notiId: string, action: number) => { + (event: any, notiId: string, action: number) => { const func = notificationActions[notiId]?.[action]; - //let res = false; + let res = false; if (func !== undefined) { func(() => { - //res = true; + res = true; }); } - event.preventDefault(); + event.returnValue = res; }); ipcMain.on('fire-dialog-action', - (event: Electron.Event, dialogId: string, action: string, input: any) => { + (event: any, dialogId: string, action: string, input: any) => { const func = DialogCallbacks.instance()[dialogId]; if (func !== undefined) { func(action, input); delete DialogCallbacks.instance()[dialogId]; } - //event.returnValue = true; + event.returnValue = true; }); } diff --git a/src/extensions/updater/autoupdater.ts b/src/extensions/updater/autoupdater.ts index d0a9607b0..e1cfa0a40 100644 --- a/src/extensions/updater/autoupdater.ts +++ b/src/extensions/updater/autoupdater.ts @@ -243,7 +243,7 @@ function setupAutoUpdate(api: IExtensionApi) { type: 'success', message: 'Update available', actions: [ - /*{ + { title: 'Changelog', action: () => { api.store.dispatch(showDialog('info', `Changelog ${info.version}`, { @@ -252,7 +252,7 @@ function setupAutoUpdate(api: IExtensionApi) { { label: 'Close' }, ])); }, - },*/ + }, { title: 'Restart & Install', action: () => {