fix: 命令行切换配置后弹出公告

This commit is contained in:
uye
2024-11-21 00:51:30 +08:00
parent de4566cafa
commit f077ef8199
2 changed files with 11 additions and 12 deletions

View File

@@ -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()

View File

@@ -1,11 +1,11 @@
{
"profiles": {
"MaaWpfGui": {
"commandName": "Project",
"nativeDebugging": true,
"environmentVariables": {
"MAA_ENVIRONMENT": "Debug"
}
}
"profiles": {
"MaaWpfGui": {
"commandName": "Project",
"environmentVariables": {
"MAA_ENVIRONMENT": "Debug"
},
"nativeDebugging": true
}
}
}
}