diff --git a/src/MaaWpfGui/Helper/WinAdapter.cs b/src/MaaWpfGui/Helper/WinAdapter.cs index 1733e0e321..589faa9219 100644 --- a/src/MaaWpfGui/Helper/WinAdapter.cs +++ b/src/MaaWpfGui/Helper/WinAdapter.cs @@ -26,7 +26,7 @@ namespace MaaWpfGui.Helper /// public class WinAdapter { - private static readonly ILogger _logger = Log.ForContext(); + private static readonly ILogger _logger = Log.ForContext(); private static readonly Dictionary _emulatorIdDict = new Dictionary { diff --git a/src/MaaWpfGui/Main/AsstProxy.cs b/src/MaaWpfGui/Main/AsstProxy.cs index dd255c438e..731b1112ff 100644 --- a/src/MaaWpfGui/Main/AsstProxy.cs +++ b/src/MaaWpfGui/Main/AsstProxy.cs @@ -443,7 +443,7 @@ namespace MaaWpfGui.Main if (Instances.SettingsViewModel.RetryOnDisconnected) { Instances.TaskQueueViewModel.AddLog(LocalizationHelper.GetString("TryToStartEmulator"), UiLogColor.Error); - Instances.TaskQueueViewModel.KillEmulatorModeSwitcher(); + Instances.TaskQueueViewModel.KillEmulator(); await Task.Delay(3000); await Instances.TaskQueueViewModel.Stop(); Instances.TaskQueueViewModel.SetStopped(); diff --git a/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs b/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs index ad0d2da69e..2f872b63ac 100644 --- a/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs +++ b/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs @@ -52,7 +52,7 @@ namespace MaaWpfGui.ViewModels.UI /// public class SettingsViewModel : Screen { - private static readonly ILogger _logger = Log.ForContext(); + private static readonly ILogger _logger = Log.ForContext(); [DllImport("MaaCore.dll")] private static extern IntPtr AsstGetVersion();