feat(GODT-2273): menu with "Close window" and "Quit Bridge" button in main window.

This commit is contained in:
Xavier Michelon
2023-02-15 08:33:40 +01:00
parent 761c16d8cd
commit a2b9fc3dee
5 changed files with 119 additions and 6 deletions

View File

@ -142,6 +142,17 @@ ApplicationWindow {
onShowSetupGuide: function(user, address) {
root.showSetup(user,address)
}
onCloseWindow: {
root.close()
}
onQuitBridge: {
// If we ever want to add a confirmation dialog before quitting:
//root.notifications.askQuestion("Quit Bridge", "Insert warning message here.", "Quit", "Cancel", Backend.quit, null)
root.close()
Backend.quit()
}
}
WelcomeGuide { // 1