1
0
mirror of https://github.com/Eugeny/tabby.git synced 2025-07-16 00:19:54 +00:00

ask for confirmation before updating (fixes )

This commit is contained in:
Eugene Pankov 2019-08-29 14:11:30 +02:00
parent bcaa638ef0
commit 6968dcdd13

@ -217,8 +217,18 @@ export class AppRootComponent {
return false return false
} }
updateApp () { async updateApp () {
this.updater.update() 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 () { onTabDragStart () {