From 3a01a7f50ca806ebef2120ea1e517dea7b5332cd Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Mon, 30 Dec 2024 15:08:26 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20`=E5=90=AF=E5=8A=A8=20MAA=20=E5=90=8E?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E8=BF=90=E8=A1=8C`=20=E5=92=8C=20`=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=20MAA=20=E5=90=8E=E8=87=AA=E5=8A=A8=E5=BC=80=E5=90=AF?= =?UTF-8?q?=E6=A8=A1=E6=8B=9F=E5=99=A8`=20=E6=94=B9=E4=B8=BA=E7=8B=AC?= =?UTF-8?q?=E7=AB=8B=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UserControl/Settings/StartSettingsUserControlModel.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MaaWpfGui/ViewModels/UserControl/Settings/StartSettingsUserControlModel.cs b/src/MaaWpfGui/ViewModels/UserControl/Settings/StartSettingsUserControlModel.cs index 9b267a0698..fd7c62594a 100644 --- a/src/MaaWpfGui/ViewModels/UserControl/Settings/StartSettingsUserControlModel.cs +++ b/src/MaaWpfGui/ViewModels/UserControl/Settings/StartSettingsUserControlModel.cs @@ -76,7 +76,7 @@ public class StartSettingsUserControlModel : PropertyChangedBase } } - private bool _runDirectly = Convert.ToBoolean(ConfigurationHelper.GetGlobalValue(ConfigurationKeys.RunDirectly, bool.FalseString)); + private bool _runDirectly = Convert.ToBoolean(ConfigurationHelper.GetValue(ConfigurationKeys.RunDirectly, bool.FalseString)); /// /// Gets or sets a value indicating whether to run directly. @@ -87,7 +87,7 @@ public class StartSettingsUserControlModel : PropertyChangedBase set { SetAndNotify(ref _runDirectly, value); - ConfigurationHelper.SetGlobalValue(ConfigurationKeys.RunDirectly, value.ToString()); + ConfigurationHelper.SetValue(ConfigurationKeys.RunDirectly, value.ToString()); } } @@ -106,7 +106,7 @@ public class StartSettingsUserControlModel : PropertyChangedBase } } - private bool _openEmulatorAfterLaunch = Convert.ToBoolean(ConfigurationHelper.GetGlobalValue(ConfigurationKeys.StartEmulator, bool.FalseString)); + private bool _openEmulatorAfterLaunch = Convert.ToBoolean(ConfigurationHelper.GetValue(ConfigurationKeys.StartEmulator, bool.FalseString)); /// /// Gets or sets a value indicating whether to start emulator. @@ -117,7 +117,7 @@ public class StartSettingsUserControlModel : PropertyChangedBase set { SetAndNotify(ref _openEmulatorAfterLaunch, value); - ConfigurationHelper.SetGlobalValue(ConfigurationKeys.StartEmulator, value.ToString()); + ConfigurationHelper.SetValue(ConfigurationKeys.StartEmulator, value.ToString()); if (SettingsViewModel.GameSettings.ClientType == string.Empty && _runningState.GetIdle()) { SettingsViewModel.GameSettings.ClientType = "Official";