From bf2db7f673fc160aa1b0a514a6d33e5212fb9d7c Mon Sep 17 00:00:00 2001 From: Henrik Brautaset Aronsen Date: Mon, 25 Jan 2016 15:24:26 +0100 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-mobile/qml/main.qml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'qt-mobile') 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 { -- cgit v1.2.3-70-g09d2