Wizard: "next button" visibility in backward direction fixed

This commit is contained in:
Ilya Kitaev 2016-02-08 10:15:25 +03:00
parent 8bc411c598
commit 16020ae2a8

View File

@ -65,6 +65,8 @@ Rectangle {
} }
function handlePageChanged() { function handlePageChanged() {
var nextButtonVisible = pages[currentPage] !== optionsPage;
nextButton.visible = nextButtonVisible;
switch (pages[currentPage]) { switch (pages[currentPage]) {
case passwordPage: case passwordPage:
// disable "next" button until passwords match // disable "next" button until passwords match
@ -85,8 +87,7 @@ Rectangle {
// nextButton.enabled = false; // nextButton.enabled = false;
break break
default: default:
var nextButtonVisible = pages[currentPage] !== optionsPage;
//nextButton.visible = nextButton.enabled = nextButtonVisible;
} }
} }