From b73718275788bf836f95867328d66c0c48b85165 Mon Sep 17 00:00:00 2001 From: DavidXanatos Date: Sat, 20 Aug 2022 15:19:02 +0200 Subject: [PATCH] 1.3.2 --- CHANGELOG.md | 7 +++++++ SandboxiePlus/SandMan/SandMan.cpp | 15 +++++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 287aceac..093d0116 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ This project adheres to [Semantic Versioning](http://semver.org/). +## [1.3.2 / 5.58.2] - 2022-08-?? + +### Added +- added icons to sub tabs in the box option dialog +- no recovery and no message popup menu options are now persisted across ui restarts + + ## [1.3.1 / 5.58.1] - 2022-08-20 diff --git a/SandboxiePlus/SandMan/SandMan.cpp b/SandboxiePlus/SandMan/SandMan.cpp index 1cf7a8cd..82cf26c4 100644 --- a/SandboxiePlus/SandMan/SandMan.cpp +++ b/SandboxiePlus/SandMan/SandMan.cpp @@ -104,6 +104,9 @@ CSandMan::CSandMan(QWidget *parent) theGUI = this; + m_DarkTheme = false; + m_FusionTheme = false; + QDesktopServices::setUrlHandler("http", this, "OpenUrl"); QDesktopServices::setUrlHandler("https", this, "OpenUrl"); QDesktopServices::setUrlHandler("sbie", this, "OpenUrl"); @@ -439,8 +442,10 @@ void CSandMan::CreateMenus(bool bAdvanced) if(bAdvanced) { m_pDisableRecovery = m_pMenuFile->addAction(tr("Disable File Recovery"), this, SLOT(OnDisablePopUp())); m_pDisableRecovery->setCheckable(true); + m_pDisableRecovery->setChecked(theConf->GetBool("UIConfig/DisabledRecovery", false)); m_pDisableMessages = m_pMenuFile->addAction(tr("Disable Message Popup"), this, SLOT(OnDisablePopUp())); m_pDisableMessages->setCheckable(true); + m_pDisableMessages->setChecked(theConf->GetBool("UIConfig/DisableMessages", false)); } else { m_pDisableRecovery = NULL; @@ -1958,10 +1963,16 @@ void CSandMan::OnDisableForce2() void CSandMan::OnDisablePopUp() { QString Str2 = tr("No Recovery"); - if(m_pDisableRecovery) m_pDisabledRecovery->setText(m_pDisableRecovery->isChecked() ? Str2 : QString(Str2.length(), ' ')); + if (m_pDisableRecovery) { + m_pDisabledRecovery->setText(m_pDisableRecovery->isChecked() ? Str2 : QString(Str2.length(), ' ')); + theConf->SetValue("UIConfig/DisabledRecovery", m_pDisableRecovery->isChecked()); + } QString Str3 = tr("No Messages"); - if(m_pDisableMessages) m_pDisabledMessages->setText(m_pDisableMessages->isChecked() ? Str3 : QString(Str3.length(), ' ')); + if (m_pDisableMessages) { + m_pDisabledMessages->setText(m_pDisableMessages->isChecked() ? Str3 : QString(Str3.length(), ' ')); + theConf->SetValue("UIConfig/DisableMessages", m_pDisableMessages->isChecked()); + } } SB_RESULT(void*) CSandMan::ConnectSbie()