mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修复调用工作的时候未使用UI线程
This commit is contained in:
parent
b9d6c98f77
commit
da1e4004ab
@ -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++;
|
NowIndex++;
|
||||||
}
|
}
|
||||||
else if (ScheduleItems[NowIndex] is RestScheduleItem rsi)
|
else if (ScheduleItems[NowIndex] is RestScheduleItem rsi)
|
||||||
|
Loading…
Reference in New Issue
Block a user