1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-12 17:14:00 +02:00

don't show save button while on page 1

This commit is contained in:
Michael Zanetti
2013-08-04 20:44:31 +02:00
parent 6198d55940
commit 745bbb8afb

View File

@@ -23,7 +23,7 @@ Rectangle {
subtitle: generator.summary subtitle: generator.summary
showSearchField: false showSearchField: false
showBackButton: stationListView.currentIndex > 0 showBackButton: stationListView.currentIndex > 0
showNextButton: mainView.configured && stationListView.currentIndex > 0 showNextButton: mainView.configured && stationListView.currentIndex == 2
nextButtonText: "Save" nextButtonText: "Save"
backButtonText: "Back" backButtonText: "Back"
@@ -32,11 +32,13 @@ Rectangle {
onBackPressed: { onBackPressed: {
inputBubble.opacity = 0 inputBubble.opacity = 0
stationListView.decrementCurrentIndex() stationListView.decrementCurrentIndex()
if(stationListView.currentIndex == 1) { switch (stationListView.currentIndex) {
subtitle = modeModel.get(stationCreator.modeIndex).headerSubtitle + "..." case 0:
}
if(stationListView.currentIndex == 0) {
subtitle = "" subtitle = ""
break;
case 1:
subtitle = modeModel.get(stationCreator.modeIndex).headerSubtitle + "..."
break;
} }
} }
// In our case the next button is the save button // In our case the next button is the save button