fix wrong setting state

This commit is contained in:
qhy040404
2024-02-12 11:29:25 +08:00
parent ae1b452697
commit 6594d9032d

View File

@@ -167,13 +167,13 @@ internal sealed partial class SettingViewModel : Abstraction.ViewModel
if (await dialog.ConfirmAsync(SH.ViewPageSettingIsAdvancedLaunchOptionsEnabledHeader).ConfigureAwait(true)) if (await dialog.ConfirmAsync(SH.ViewPageSettingIsAdvancedLaunchOptionsEnabledHeader).ConfigureAwait(true))
{ {
launchOptions.IsAdvancedLaunchOptionsEnabled = true; launchOptions.IsAdvancedLaunchOptionsEnabled = true;
OnPropertyChanged(nameof(IsAllocConsoleDebugModeEnabled)); OnPropertyChanged(nameof(IsAdvancedLaunchOptionsEnabled));
return; return;
} }
} }
launchOptions.IsAdvancedLaunchOptionsEnabled = false; launchOptions.IsAdvancedLaunchOptionsEnabled = false;
OnPropertyChanged(nameof(IsAllocConsoleDebugModeEnabled)); OnPropertyChanged(nameof(IsAdvancedLaunchOptionsEnabled));
} }
} }
} }