Move the page hiding into the controller
This way they are hidden right away when the installer is started and not after the first next click. We have to take care here to not hide pages used by the uninstaller though.
This commit is contained in:
parent
cbdbd2e246
commit
82a3c5ccd5
@ -1,5 +1,10 @@
|
||||
function Controller()
|
||||
{
|
||||
installer.setDefaultPageVisible(QInstaller.LicenseCheck, false);
|
||||
if (installer.isInstaller()) {
|
||||
installer.setDefaultPageVisible(QInstaller.ComponentSelection, false);
|
||||
installer.setDefaultPageVisible(QInstaller.ReadyForInstallation, false);
|
||||
}
|
||||
}
|
||||
|
||||
Controller.prototype.IntroductionPageCallback = function()
|
||||
|
||||
@ -41,9 +41,4 @@ function Component() {
|
||||
var targetDir = installer.value("TargetDir", systemDrive+"\\msys64")
|
||||
|
||||
installer.setValue("TargetDir", targetDir);
|
||||
installer.setDefaultPageVisible(QInstaller.TargetDirectory, true);
|
||||
installer.setDefaultPageVisible(QInstaller.ComponentSelection, false);
|
||||
installer.setDefaultPageVisible(QInstaller.ReadyForInstallation, false);
|
||||
installer.setDefaultPageVisible(QInstaller.StartMenuSelection, true);
|
||||
installer.setDefaultPageVisible(QInstaller.LicenseCheck, false);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user