Merge pull request #3941 from love-code-yeyixiao/AdminConf
Update SetupWizard
This commit is contained in:
commit
ec7749d46f
|
@ -86,6 +86,9 @@ bool CSetupWizard::ShowWizard(int iOldLevel)
|
||||||
if (wizard.field("useBrowserIcon").toBool())
|
if (wizard.field("useBrowserIcon").toBool())
|
||||||
CSettingsWindow::AddBrowserIcon();
|
CSettingsWindow::AddBrowserIcon();
|
||||||
|
|
||||||
|
if (wizard.field("editAdminOnly").toBool())
|
||||||
|
theConf->SetValue("Options/EditAdminOnly", 1);
|
||||||
|
|
||||||
//if (wizard.field("useWFP").toBool()) {
|
//if (wizard.field("useWFP").toBool()) {
|
||||||
// theAPI->GetGlobalSettings()->SetBool("NetworkEnableWFP", true);
|
// theAPI->GetGlobalSettings()->SetBool("NetworkEnableWFP", true);
|
||||||
// theAPI->ReloadConfig(true);
|
// theAPI->ReloadConfig(true);
|
||||||
|
@ -518,6 +521,11 @@ CShellPage::CShellPage(QWidget *parent)
|
||||||
layout->addWidget(m_pBrowserIcon);
|
layout->addWidget(m_pBrowserIcon);
|
||||||
registerField("useBrowserIcon", 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);
|
setLayout(layout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -119,6 +119,7 @@ private:
|
||||||
QCheckBox *m_pAutoStart;
|
QCheckBox *m_pAutoStart;
|
||||||
QCheckBox *m_pContecxtMenu;
|
QCheckBox *m_pContecxtMenu;
|
||||||
QCheckBox *m_pBrowserIcon;
|
QCheckBox *m_pBrowserIcon;
|
||||||
|
QCheckBox* m_pEditOnlyAdmin;
|
||||||
};
|
};
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in New Issue