Merge pull request #3941 from love-code-yeyixiao/AdminConf

Update SetupWizard
This commit is contained in:
DavidXanatos 2024-05-25 14:02:30 +02:00 committed by GitHub
commit ec7749d46f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View File

@ -86,6 +86,9 @@ 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);
@ -518,6 +521,11 @@ CShellPage::CShellPage(QWidget *parent)
layout->addWidget(m_pBrowserIcon);
registerField("useBrowserIcon", m_pBrowserIcon);
m_pEditOnlyAdmin = new QCheckBox(tr("Only applications with administrator token can change ini setting."));
m_pEditOnlyAdmin->setChecked(false);
layout->addWidget(m_pEditOnlyAdmin);
registerField("editAdminOnly", m_pEditOnlyAdmin);
setLayout(layout);
}

View File

@ -119,6 +119,7 @@ private:
QCheckBox *m_pAutoStart;
QCheckBox *m_pContecxtMenu;
QCheckBox *m_pBrowserIcon;
QCheckBox* m_pEditOnlyAdmin;
};
//////////////////////////////////////////////////////////////////////////////////////////