diff --git a/src/app/app-cache-handler.ts b/src/app/app-cache-handler.ts index 3e26b3f6..c625c1b1 100644 --- a/src/app/app-cache-handler.ts +++ b/src/app/app-cache-handler.ts @@ -1,4 +1,10 @@ -import { app, BrowserWindow, dialog, session } from 'electron'; +import { + app, + BrowserWindow, + dialog, + MessageBoxOptions, + session, +} from 'electron'; import * as fs from 'fs'; import * as path from 'path'; import * as rimraf from 'rimraf'; @@ -103,7 +109,7 @@ export const cleanAppCacheOnCrash = (window: BrowserWindow): void => { ) { return; } - const options: Electron.MessageBoxOptions = { + const options: MessageBoxOptions = { type: 'question', title: i18n.t('Relaunch Application')(), message: i18n.t( diff --git a/src/app/dialog-handler.ts b/src/app/dialog-handler.ts index 5cb6f3bc..b8cab4d0 100644 --- a/src/app/dialog-handler.ts +++ b/src/app/dialog-handler.ts @@ -1,4 +1,4 @@ -import { app, BrowserWindow, dialog } from 'electron'; +import { app, BrowserWindow, dialog, MessageBoxOptions } from 'electron'; import { i18n } from '../common/i18n'; import { logger } from '../common/logger'; @@ -178,7 +178,7 @@ export const titleBarChangeDialog = async ( if (!focusedWindow || !windowExists(focusedWindow)) { return; } - const options: Electron.MessageBoxOptions = { + const options: MessageBoxOptions = { type: 'question', title: i18n.t('Relaunch Application')(), message: i18n.t( @@ -208,7 +208,7 @@ export const restartDialog = async (configFields: any) => { if (!focusedWindow || !windowExists(focusedWindow)) { return; } - const options: Electron.MessageBoxOptions = { + const options: MessageBoxOptions = { type: 'question', title: i18n.t('Relaunch Application')(), message: i18n.t(