diff options
author | Henrik Brautaset Aronsen <subsurface@henrik.synth.no> | 2016-01-25 15:24:26 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-01-25 07:08:55 -0800 |
commit | bf2db7f673fc160aa1b0a514a6d33e5212fb9d7c (patch) | |
tree | a339cb81dde2d742579eb4851d0c9f66bef52a18 /qt-mobile/qml | |
parent | 3a33deeaceb7a55a61813fa91d2abe81b54ed3fe (diff) | |
download | subsurface-bf2db7f673fc160aa1b0a514a6d33e5212fb9d7c.tar.gz |
Move dive list menu entry to top
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@henrik.synth.no>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml')
-rw-r--r-- | qt-mobile/qml/main.qml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/qt-mobile/qml/main.qml b/qt-mobile/qml/main.qml index bbc72f3ec..4422d5b07 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 { |