diff --git a/src/MaaWpfGui/Main/Bootstrapper.cs b/src/MaaWpfGui/Main/Bootstrapper.cs index cb6763854c..e6fa9fa9e0 100644 --- a/src/MaaWpfGui/Main/Bootstrapper.cs +++ b/src/MaaWpfGui/Main/Bootstrapper.cs @@ -153,6 +153,7 @@ namespace MaaWpfGui.Main base.OnStart(); ConfigurationHelper.Load(); LocalizationHelper.Load(); + ETagCache.Load(); if (!HandleMultipleInstances()) { @@ -172,8 +173,6 @@ namespace MaaWpfGui.Main return; } - ETagCache.Load(); - // 检查 MaaCore.dll 是否存在 if (!File.Exists("MaaCore.dll")) { @@ -286,7 +285,7 @@ namespace MaaWpfGui.Main ProcessStartInfo startInfo = new ProcessStartInfo { FileName = Environment.ProcessPath, }; - Process.Start(startInfo); + //Process.Start(startInfo); } public static void Release() diff --git a/src/MaaWpfGui/Properties/launchSettings.json b/src/MaaWpfGui/Properties/launchSettings.json index fd35cbd0b6..931f691790 100644 --- a/src/MaaWpfGui/Properties/launchSettings.json +++ b/src/MaaWpfGui/Properties/launchSettings.json @@ -1,11 +1,11 @@ { - "profiles": { - "MaaWpfGui": { - "commandName": "Project", - "nativeDebugging": true, - "environmentVariables": { - "MAA_ENVIRONMENT": "Debug" - } - } + "profiles": { + "MaaWpfGui": { + "commandName": "Project", + "environmentVariables": { + "MAA_ENVIRONMENT": "Debug" + }, + "nativeDebugging": true } -} + } +} \ No newline at end of file