set default cancel button in message boxes

This commit is contained in:
Eugene Pankov
2021-08-02 21:01:35 +02:00
parent ab8061ab39
commit edd7e9c7b7
15 changed files with 43 additions and 26 deletions

View File

@@ -126,10 +126,11 @@ export class ElectronUpdaterService extends UpdaterService {
{
type: 'warning',
message: 'Installing the update will close all tabs and restart Tabby.',
buttons: ['Cancel', 'Update'],
defaultId: 1,
buttons: ['Update', 'Cancel'],
defaultId: 0,
cancelId: 1,
}
)).response === 1) {
)).response === 0) {
await this.downloaded
this.electron.autoUpdater.quitAndInstall()
}