fix: 修复自动战斗-战斗列表拖拽导致崩溃 (#6555)

This commit is contained in:
uye
2023-09-29 23:01:10 +08:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -93,5 +93,6 @@ void asst::SanityBeforeStagePlugin::get_sanity_before_stage()
sanity_info["details"]["max_sanity"] = sanity_max;
sanity_info["details"]["report_time"] = utils::get_format_time();
} while (false);
// 如果识别失败返回空json。缓存数据需要作废
callback(AsstMsg::SubTaskExtraInfo, sanity_info);
}

View File

@@ -695,7 +695,9 @@ namespace MaaWpfGui.ViewModels.UI
/// <summary>
/// 更新任务顺序
/// </summary>
private void CopilotItemIndexChanged()
// UI 绑定的方法
// ReSharper disable once MemberCanBePrivate.Global
public void CopilotItemIndexChanged()
{
Application.Current.Dispatcher.InvokeAsync(() =>
{