This commit is contained in:
DavidXanatos 2024-05-25 14:46:00 +02:00
parent f12dc45bbd
commit f816d31c71
2 changed files with 14 additions and 5 deletions

View File

@ -500,10 +500,7 @@ int CUIPage::nextId() const
////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////
// CShellPage // 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) CShellPage::CShellPage(QWidget *parent)
: QWizardPage(parent) : QWizardPage(parent)
{ {
@ -536,6 +533,16 @@ CShellPage::CShellPage(QWidget *parent)
setLayout(layout); setLayout(layout);
} }
void CShellPage::OnEditOnlyAdmin()
{
if (m_pEditOnlyAdmin->isChecked()) {
if (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::Ok, QMessageBox::Cancel) == QMessageBox::Cancel)
m_pEditOnlyAdmin->setChecked(false);
}
}
int CShellPage::nextId() const int CShellPage::nextId() const
{ {
//return CSetupWizard::Page_WFP; //return CSetupWizard::Page_WFP;

View File

@ -111,11 +111,13 @@ class CShellPage : public QWizardPage
Q_OBJECT Q_OBJECT
public: public:
void OnEditOnlyAdmin();
CShellPage(QWidget *parent = nullptr); CShellPage(QWidget *parent = nullptr);
int nextId() const override; int nextId() const override;
private slots:
void OnEditOnlyAdmin();
private: private:
QCheckBox *m_pAutoStart; QCheckBox *m_pAutoStart;
QCheckBox *m_pContecxtMenu; QCheckBox *m_pContecxtMenu;