Update again.

This commit is contained in:
love-code-yeyixiao 2024-05-25 20:28:56 +08:00
parent f3a880ede6
commit dc01b1fb78
2 changed files with 7 additions and 2 deletions

View File

@ -497,7 +497,10 @@ int CUIPage::nextId() const
//////////////////////////////////////////////////////////////////////////////////////////
// CShellPage
//
void CShellPage::OnEditOnlyAdmin() {
if (this->m_pEditOnlyAdmin->isChecked())
QMessageBox::warning(this, tr("Warning"), tr("When this option is set, Sandbox Manager with normal user permissions will not be able to modify the configuration, which may result in a lock. You need to open the Sandbox Manager main window, click \"Sandbox (s)\" in the system menu, and then click \"Restart as Admin\" in the pop - up context menu to gain control of the configuration."),QMessageBox::Yes,QMessageBox::YesAll);
}
CShellPage::CShellPage(QWidget *parent)
: QWizardPage(parent)
{
@ -523,6 +526,7 @@ CShellPage::CShellPage(QWidget *parent)
m_pEditOnlyAdmin = new QCheckBox(tr("Only applications with administrator token can change ini setting."));
m_pEditOnlyAdmin->setChecked(false);
connect(m_pEditOnlyAdmin,SIGNAL(clicked(bool)), this, SLOT(OnEditOnlyAdmin()));
layout->addWidget(m_pEditOnlyAdmin);
registerField("editAdminOnly", m_pEditOnlyAdmin);

View File

@ -111,7 +111,8 @@ class CShellPage : public QWizardPage
Q_OBJECT
public:
CShellPage(QWidget *parent = nullptr);
void OnEditOnlyAdmin();
CShellPage(QWidget *parent = nullptr);
int nextId() const override;