[PATCH] Move dive list menu entry to top
subsurface at henrik.synth.no
subsurface at henrik.synth.no
Mon Jan 25 06:24:26 PST 2016
From: Henrik Brautaset Aronsen <subsurface at henrik.synth.no>
I guess the Dive list item will be accessed more often
than the preferences item, so put it to to. Also remove
the "back to" prefix.
Signed-off-by: Henrik Brautaset Aronsen <subsurface at henrik.synth.no>
---
qt-mobile/qml/main.qml | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/qt-mobile/qml/main.qml b/qt-mobile/qml/main.qml
index bbc72f3..4422d5b 100644
--- a/qt-mobile/qml/main.qml
+++ b/qt-mobile/qml/main.qml
@@ -27,23 +27,23 @@ MobileComponents.ApplicationWindow {
bannerImageSource: "dive.jpg"
actions: [
Action {
- text: "Cloud credentials"
+ text: "Dive list"
onTriggered: {
- stackView.push(cloudCredWindow)
+ for (var i=stackView.depth; i>1; i--) {
+ stackView.pop()
+ }
}
},
Action {
- text: "Preferences"
+ text: "Cloud credentials"
onTriggered: {
- stackView.push(prefsWindow)
+ stackView.push(cloudCredWindow)
}
},
Action {
- text: "Back to Divelist"
+ text: "Preferences"
onTriggered: {
- for (var i=stackView.depth; i>1; i--) {
- stackView.pop()
- }
+ stackView.push(prefsWindow)
}
},
MobileComponents.ActionGroup {
--
2.5.0
More information about the subsurface
mailing list