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:
Christoph Reiter 2022-11-12 20:10:20 +01:00
parent cbdbd2e246
commit 82a3c5ccd5
2 changed files with 5 additions and 5 deletions

View File

@ -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()

View File

@ -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);
}