Update SetupWizard

This commit is contained in:
love-code-yeyixiao 2024-05-25 19:48:42 +08:00
parent d0ece79771
commit f3a880ede6
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;
};
//////////////////////////////////////////////////////////////////////////////////////////