Only hides the window when there are no more pages

so it doens't hide before the error message is shown and it doesn't hide when there are extra pages (like for the UMO)

Contributes to #CURA-256
Contributes to #429
This commit is contained in:
Tamara Hogenhout 2015-11-05 18:17:04 +01:00
parent 14abec095c
commit 831419d110

View File

@ -7,8 +7,6 @@ import QtQuick.Window 2.1
import QtQuick.Controls.Styles 1.1
import UM 1.1 as UM
import Cura 1.0 as Cura
import ".."
Item
{
@ -80,7 +78,6 @@ Item
base.wizard.removePage(i)
}
saveMachine()
base.wizard.visible = false
}
}
onBackClicked:
@ -296,6 +293,9 @@ Item
break;
}
}
if(base.wizard.lastPage == true){
base.wizard.visible = false
}
}
}