From f077ef81994fbeb0e67f8fa3133f2a0d5804b2fe Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Thu, 21 Nov 2024 00:51:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=91=BD=E4=BB=A4=E8=A1=8C=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E9=85=8D=E7=BD=AE=E5=90=8E=E5=BC=B9=E5=87=BA=E5=85=AC?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaWpfGui/Main/Bootstrapper.cs | 5 ++--- src/MaaWpfGui/Properties/launchSettings.json | 18 +++++++++--------- 2 files changed, 11 insertions(+), 12 deletions(-) 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