Update SetupWizard.cpp

This commit is contained in:
DavidXanatos 2024-05-25 14:07:48 +02:00
parent ec7749d46f
commit f0d514e3ae
1 changed files with 6 additions and 3 deletions

View File

@ -86,9 +86,6 @@ bool CSetupWizard::ShowWizard(int iOldLevel)
if (wizard.field("useBrowserIcon").toBool())
CSettingsWindow::AddBrowserIcon();
if (wizard.field("editAdminOnly").toBool())
theConf->SetValue("Options/EditAdminOnly", 1);
//if (wizard.field("useWFP").toBool()) {
// theAPI->GetGlobalSettings()->SetBool("NetworkEnableWFP", true);
// theAPI->ReloadConfig(true);
@ -134,6 +131,12 @@ bool CSetupWizard::ShowWizard(int iOldLevel)
//if (wizard.field("isUpdate").toBool())
// theConf->SetValue("Options/CheckForUpdates", 1);
if (iOldLevel < SETUP_LVL_1)
{
if (wizard.field("editAdminOnly").toBool())
theAPI->GetGlobalSettings()->SetText("EditAdminOnly", "y");
}
theConf->SetValue("Options/WizardLevel", SETUP_LVL_CURRENT);
theGUI->UpdateSettings(true);