mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-13 07:59:59 +00:00
ask for confirmation before updating (fixes #1386)
This commit is contained in:
parent
bcaa638ef0
commit
6968dcdd13
@ -217,9 +217,19 @@ export class AppRootComponent {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
updateApp () {
|
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()
|
this.updater.update()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
onTabDragStart () {
|
onTabDragStart () {
|
||||||
this.tabsDragging = true
|
this.tabsDragging = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user