修复调用工作的时候未使用UI线程

This commit is contained in:
ZouJin 2024-06-01 14:07:19 +08:00
parent b9d6c98f77
commit da1e4004ab

View File

@ -178,7 +178,7 @@ public class ScheduleTask
}
}
mw.Main.StartWork(wsi.Work.Double(wsi.DBL));
mw.Dispatcher.Invoke(() => mw.Main.StartWork(wsi.Work.Double(wsi.DBL)));
NowIndex++;
}
else if (ScheduleItems[NowIndex] is RestScheduleItem rsi)