mirror of
https://github.com/Eugeny/tabby.git
synced 2025-10-05 14:34:54 +00:00
set default cancel button in message boxes
This commit is contained in:
@@ -13,6 +13,7 @@ export interface MessageBoxOptions {
|
||||
detail?: string
|
||||
buttons: string[]
|
||||
defaultId?: number
|
||||
cancelId?: number
|
||||
}
|
||||
|
||||
export interface MessageBoxResult {
|
||||
|
@@ -43,6 +43,7 @@ export class TransfersMenuComponent {
|
||||
message: 'There are active file transfers',
|
||||
buttons: ['Abort all', 'Do not abort'],
|
||||
defaultId: 1,
|
||||
cancelId: 1,
|
||||
})).response === 1) {
|
||||
return
|
||||
}
|
||||
|
@@ -375,6 +375,7 @@ export class ConfigService {
|
||||
detail: e.toString(),
|
||||
buttons: ['Erase config', 'Quit'],
|
||||
defaultId: 1,
|
||||
cancelId: 1,
|
||||
})
|
||||
if (result.response === 1) {
|
||||
this.platform.quit()
|
||||
|
Reference in New Issue
Block a user