mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 09:50:40 +08:00
chore: 启动 MAA 后直接运行 和 启动 MAA 后自动开启模拟器 改为独立配置
This commit is contained in:
@@ -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));
|
||||
|
||||
/// <summary>
|
||||
/// 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));
|
||||
|
||||
/// <summary>
|
||||
/// 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";
|
||||
|
||||
Reference in New Issue
Block a user