Make it possible to quit the application

This will call Qt.quit when the Quit application shortcut is pressed (not just
visible=false).
This commit is contained in:
Aleix Pol
2020-11-27 17:46:46 +01:00
committed by Carl Schwan
parent 97cba6a17a
commit 118dabb58b
2 changed files with 8 additions and 0 deletions

View File

@@ -20,6 +20,13 @@ Kirigami.ApplicationWindow {
id: root
property var currentRoom: null
Connections {
target: root.quitAction
function onTriggered() {
Qt.quit()
}
}
/**
* Manage opening and close rooms
*/