Merge pull request #3844 from offhub/fix008

Update SettingsWindow.cpp
This commit is contained in:
DavidXanatos 2024-04-24 09:32:13 +02:00 committed by GitHub
commit 6b9f44fcb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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);