This commit is contained in:
Stephen Shelton 2020-03-24 13:39:43 -06:00
parent 1b546dc721
commit 549e168fdb
No known key found for this signature in database
GPG Key ID: 09082714F73FAA22
1 changed files with 9 additions and 8 deletions

View File

@ -29,10 +29,7 @@ ApplicationWindow {
onClosing: {
if (notray) {
if (! platformDetails.isDebug()) {
platformDetails.stopLokinetIfWeStartedIt();
}
Qt.quit();
window.exitApp();
}
}
@ -45,6 +42,13 @@ ApplicationWindow {
visible: false
}
function exitApp() {
if (! platformDetails.isDebug()) {
platformDetails.stopLokinetIfWeStartedIt();
}
Qt.quit();
}
function display() {
var rect = platformDetails.getAbsoluteCursorPosition();
@ -113,10 +117,7 @@ ApplicationWindow {
MenuItem {
text: qsTr("Exit")
onTriggered: {
if (! platformDetails.isDebug()) {
platformDetails.stopLokinetIfWeStartedIt();
}
Qt.quit();
window.exitApp();
}
}