fix: 修复保全界面打印错误

This commit is contained in:
MistEO
2023-01-16 01:38:17 +08:00
parent 0ddf8f3e27
commit 51df29db64
2 changed files with 3 additions and 6 deletions

View File

@@ -45,7 +45,7 @@ bool asst::SSSStageManagerTask::_run()
break;
}
}
if (!success) {
if (!need_exit() && !success) {
Log.warn("Can't win, run!");
auto info = basic_info_with_what("SSSSettlement");

View File

@@ -961,17 +961,14 @@ namespace MaaWpfGui
case "SSSStage":
{
copilotModel.AddLog(
string.Format(Localization.GetString("CurrentStage"),
subTaskDetails["stage"].ToString()));
copilotModel.AddLog("CurrentStage: " + subTaskDetails["stage"].ToString(), UILogColor.Info);
}
break;
case "SSSSettlement":
{
copilotModel.AddLog(
string.Format(details["why"].ToString()));
copilotModel.AddLog(details["why"].ToString(), UILogColor.Info);
}
break;