mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-20 02:55:38 +08:00
feat: 出现异常时也执行 Shutdown 而不是强制停止
This commit is contained in:
@@ -153,7 +153,7 @@ namespace MeoAsstGui
|
||||
Execute.OnUIThread(() =>
|
||||
{
|
||||
_windowManager.ShowMessageBox("出现未知异常", "错误", icon: MessageBoxImage.Error);
|
||||
Environment.Exit(0);
|
||||
App.Current.Shutdown();
|
||||
});
|
||||
}
|
||||
var mainModel = _container.Get<TaskQueueViewModel>();
|
||||
@@ -217,7 +217,7 @@ namespace MeoAsstGui
|
||||
|
||||
case AsstMsg.InitFailed:
|
||||
_windowManager.ShowMessageBox("初始化错误!请检查是否使用了中文路径", "错误", icon: MessageBoxImage.Error);
|
||||
Environment.Exit(0);
|
||||
App.Current.Shutdown();
|
||||
break;
|
||||
|
||||
case AsstMsg.ConnectionInfo:
|
||||
|
||||
Reference in New Issue
Block a user