diff options
author | Robert C. Helling <helling@atdotde.de> | 2017-12-06 11:41:46 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-12-06 06:00:22 -0800 |
commit | 4a9add167f1d061f1010061aae68a64ecbe6e5c8 (patch) | |
tree | 958041b7d76c5209c238f98e99cbe247b124d044 /mobile-widgets | |
parent | 14348a8d9aea5b50f27bb7ce9420759ae51dd2a0 (diff) | |
download | subsurface-4a9add167f1d061f1010061aae68a64ecbe6e5c8.tar.gz |
Don't close menu after click
I consider it more natural for example for the GPS menu
to stay open when an action is clicked. So this turns off
the general close but has to trigger it on individual items.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/main.qml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index 35380fe8f..dafcd7c98 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -111,6 +111,7 @@ Kirigami.ApplicationWindow { titleIcon: "qrc:/qml/subsurface-mobile-icon.png" bannerImageSource: "dive.jpg" + resetMenuOnTriggered: false actions: [ Kirigami.Action { @@ -137,6 +138,7 @@ Kirigami.ApplicationWindow { text: qsTr("Add dive manually") enabled: manager.credentialStatus === QMLManager.CS_VERIFIED || manager.credentialStatus === QMLManager.CS_NOCLOUD onTriggered: { + globalDrawer.close() returnTopPage() // otherwise odd things happen with the page stack startAddDive() } @@ -147,6 +149,7 @@ Kirigami.ApplicationWindow { text: qsTr("Download from DC") enabled: true onTriggered: { + globalDrawer.close() downloadFromDc.dcImportModel.clearTable() stackView.push(downloadFromDc) } @@ -216,6 +219,7 @@ if you have network connectivity and want to sync your data to cloud storage."), iconName: "icons/ic_gps_fixed.svg" text: qsTr("Show GPS fixes") onTriggered: { + globalDrawer.close() returnTopPage() manager.populateGpsData(); stackView.push(gpsWindow) @@ -242,6 +246,7 @@ if you have network connectivity and want to sync your data to cloud storage."), iconName: "icons/ic_info_outline.svg" text: qsTr("About") onTriggered: { + globalDrawer.close() stackView.push(aboutWindow) detailsWindow.endEditMode() } @@ -250,6 +255,7 @@ if you have network connectivity and want to sync your data to cloud storage."), iconName: "icons/ic_settings.svg" text: qsTr("Settings") onTriggered: { + globalDrawer.close() stackView.push(settingsWindow) detailsWindow.endEditMode() } @@ -261,6 +267,7 @@ if you have network connectivity and want to sync your data to cloud storage."), Kirigami.Action { text: qsTr("App log") onTriggered: { + globalDrawer.close() stackView.push(logWindow) } } @@ -268,6 +275,7 @@ if you have network connectivity and want to sync your data to cloud storage."), Kirigami.Action { text: qsTr("Theme information") onTriggered: { + globalDrawer.close() stackView.push(themetest) } } |