mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-17 01:59:33 +08:00
fix: 命令行切换配置后弹出公告
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"profiles": {
|
||||
"MaaWpfGui": {
|
||||
"commandName": "Project",
|
||||
"nativeDebugging": true,
|
||||
"environmentVariables": {
|
||||
"MAA_ENVIRONMENT": "Debug"
|
||||
}
|
||||
}
|
||||
"profiles": {
|
||||
"MaaWpfGui": {
|
||||
"commandName": "Project",
|
||||
"environmentVariables": {
|
||||
"MAA_ENVIRONMENT": "Debug"
|
||||
},
|
||||
"nativeDebugging": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user