diff --git a/terminus-core/src/components/appRoot.component.ts b/terminus-core/src/components/appRoot.component.ts index cecb43cf..ebef17cd 100644 --- a/terminus-core/src/components/appRoot.component.ts +++ b/terminus-core/src/components/appRoot.component.ts @@ -217,8 +217,18 @@ export class AppRootComponent { return false } - updateApp () { - this.updater.update() + async updateApp () { + if ((await this.electron.showMessageBox( + this.hostApp.getWindow(), + { + type: 'warning', + message: 'Installing the update will close all tabs and restart Terminus.', + buttons: ['Cancel', 'Update'], + defaultId: 1, + } + )).response === 1) { + this.updater.update() + } } onTabDragStart () {