Update SettingsWindow.cpp

Fixes the partially checked status of the `ui.chkSvcStart` checkbox.
This commit is contained in:
offhub 2024-04-22 17:51:06 +03:00
parent ba97a442fc
commit 71dcf9533d
No known key found for this signature in database
GPG Key ID: 7B12A8941851DA59
1 changed files with 1 additions and 1 deletions

View File

@ -875,7 +875,7 @@ void CSettingsWindow::LoadSettings()
ui.chkAutoStart->setChecked(IsAutorunEnabled());
if (theAPI->IsConnected()) {
if (theAPI->GetUserSettings()->GetBool("SbieCtrl_EnableAutoStart", true)) {
if (theAPI->GetUserSettings()->GetText("SbieCtrl_AutoStartAgent", "") != "SandMan.exe")
if (theAPI->GetUserSettings()->GetText("SbieCtrl_AutoStartAgent", "").left(11) != "SandMan.exe")
ui.chkSvcStart->setCheckState(Qt::PartiallyChecked);
else
ui.chkSvcStart->setChecked(true);