Update SandMan.cpp

This commit is contained in:
DavidXanatos 2022-12-30 22:07:47 +01:00
parent 6f5e5df6a0
commit 08d665cf94
1 changed files with 10 additions and 10 deletions

View File

@ -1732,16 +1732,6 @@ void CSandMan::OnStatusChanged()
theAPI->GetGlobalSettings()->SetText("FileRootPath", BoxPath + "\\%SANDBOX%");
}
if (theConf->GetBool("Options/AutoRunSoftCompat", true))
{
if (m_SbieTemplates->RunCheck())
{
CSettingsWindow* pSettingsWindow = new CSettingsWindow(this);
connect(pSettingsWindow, SIGNAL(OptionsChanged(bool)), this, SLOT(UpdateSettings(bool)));
pSettingsWindow->showTab(CSettingsWindow::eSoftCompat);
}
}
if (SbiePath.compare(QApplication::applicationDirPath().replace("/", "\\"), Qt::CaseInsensitive) == 0)
{
if (theAPI->GetUserSettings()->GetText("SbieCtrl_AutoStartAgent").isEmpty())
@ -1832,6 +1822,16 @@ void CSandMan::OnStatusChanged()
if (!CSetupWizard::ShowWizard()) // if user canceled mark that and not show again
theConf->SetValue("Options/WizardLevel", -1);
}
if (theConf->GetBool("Options/AutoRunSoftCompat", true))
{
if (m_SbieTemplates->RunCheck())
{
CSettingsWindow* pSettingsWindow = new CSettingsWindow(this);
connect(pSettingsWindow, SIGNAL(OptionsChanged(bool)), this, SLOT(UpdateSettings(bool)));
pSettingsWindow->showTab(CSettingsWindow::eSoftCompat);
}
}
}
else
{