diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2021-12-16 15:17:34 +0100 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-12-16 15:17:34 +0100 |
commit | 25a905ed7775ca8ecc12de158ff74d1e7447db17 (patch) | |
tree | 33e09ff761962cadde65c91dea5ab7f435b6ac12 /gui/components/MainView.qml | |
parent | 66f3e3c57e54644c59caab987fd5bda5cae0ee0b (diff) |
more fix
Diffstat (limited to 'gui/components/MainView.qml')
-rw-r--r-- | gui/components/MainView.qml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/components/MainView.qml b/gui/components/MainView.qml index 946e36f..25a388c 100644 --- a/gui/components/MainView.qml +++ b/gui/components/MainView.qml @@ -77,6 +77,9 @@ Page { text: qsTr("Quit") icon: "../resources/quit.svg" triggered: function() { + if (ctx.status == "on") { + backend.switchOff() + } Qt.callLater(backend.quit) } } |