1.0.8
This commit is contained in:
parent
585821466e
commit
667535cdbe
|
@ -34,6 +34,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||
- fixed dpi issues with Qt [#1368](https://github.com/sandboxie-plus/Sandboxie/issues/1368)
|
||||
- fixed issue with bright flashing on window creation when in dark mode [#1231](https://github.com/sandboxie-plus/Sandboxie/issues/1231)
|
||||
- fixed issues with the PortableRootDir setting [#1509](https://github.com/sandboxie-plus/Sandboxie/issues/1509)
|
||||
- fixed issue with the settings window crashign when the driver was nto connected
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -215,13 +215,19 @@ void CSettingsWindow::LoadSettings()
|
|||
ui.uiLang->setCurrentIndex(ui.uiLang->findData(theConf->GetString("Options/UiLanguage")));
|
||||
|
||||
ui.chkAutoStart->setChecked(IsAutorunEnabled());
|
||||
if (theAPI->IsConnected()) {
|
||||
if (theAPI->GetUserSettings()->GetBool("SbieCtrl_EnableAutoStart", true)) {
|
||||
if (theAPI->GetUserSettings()->GetText("SbieCtrl_AutoStartAgent", "") != "SandMan.exe")
|
||||
ui.chkSvcStart->setCheckState(Qt::PartiallyChecked);
|
||||
else
|
||||
ui.chkSvcStart->setChecked(true);
|
||||
} else
|
||||
}
|
||||
else
|
||||
ui.chkSvcStart->setChecked(false);
|
||||
}
|
||||
else {
|
||||
ui.chkSvcStart->setEnabled(false);
|
||||
}
|
||||
|
||||
ui.chkShellMenu->setCheckState(CSettingsWindow__IsContextMenu());
|
||||
ui.chkAlwaysDefault->setChecked(theConf->GetBool("Options/RunInDefaultBox", false));
|
||||
|
@ -280,6 +286,7 @@ void CSettingsWindow::LoadSettings()
|
|||
{
|
||||
ui.fileRoot->setEnabled(false);
|
||||
ui.chkSeparateUserFolders->setEnabled(false);
|
||||
ui.chkAutoRoot->setEnabled(false);
|
||||
ui.chkWFP->setEnabled(false);
|
||||
ui.chkObjCb->setEnabled(false);
|
||||
ui.chkWin32k->setEnabled(false);
|
||||
|
@ -351,11 +358,14 @@ void CSettingsWindow::SaveSettings()
|
|||
|
||||
AutorunEnable(ui.chkAutoStart->isChecked());
|
||||
|
||||
if (theAPI->IsConnected()) {
|
||||
if (ui.chkSvcStart->checkState() == Qt::Checked) {
|
||||
theAPI->GetUserSettings()->SetBool("SbieCtrl_EnableAutoStart", true);
|
||||
theAPI->GetUserSettings()->SetText("SbieCtrl_AutoStartAgent", "SandMan.exe");
|
||||
} else if (ui.chkSvcStart->checkState() == Qt::Unchecked)
|
||||
}
|
||||
else if (ui.chkSvcStart->checkState() == Qt::Unchecked)
|
||||
theAPI->GetUserSettings()->SetBool("SbieCtrl_EnableAutoStart", false);
|
||||
}
|
||||
|
||||
if (ui.chkShellMenu->checkState() != CSettingsWindow__IsContextMenu())
|
||||
{
|
||||
|
@ -483,8 +493,7 @@ void CSettingsWindow::SaveSettings()
|
|||
|
||||
theConf->SetValue("Options/AutoRunSoftCompat", !ui.chkNoCompat->isChecked());
|
||||
|
||||
|
||||
if (m_CertChanged)
|
||||
if (m_CertChanged && theAPI->IsConnected())
|
||||
{
|
||||
QByteArray Certificate = ui.txtCertificate->toPlainText().toUtf8();
|
||||
if (g_Certificate != Certificate) {
|
||||
|
@ -774,6 +783,7 @@ void CSettingsWindow::LoadIniSection()
|
|||
{
|
||||
QString Section;
|
||||
|
||||
if(theAPI->IsConnected())
|
||||
Section = theAPI->SbieIniGetEx("GlobalSettings", "");
|
||||
|
||||
ui.txtIniSection->setPlainText(Section);
|
||||
|
@ -781,6 +791,7 @@ void CSettingsWindow::LoadIniSection()
|
|||
|
||||
void CSettingsWindow::SaveIniSection()
|
||||
{
|
||||
if(theAPI->IsConnected())
|
||||
theAPI->SbieIniSet("GlobalSettings", "", ui.txtIniSection->toPlainText());
|
||||
|
||||
LoadIniSection();
|
||||
|
|
Loading…
Reference in New Issue