mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-17 10:00:44 +08:00
fix: 0时的定时任务无法提前重启
This commit is contained in:
@@ -261,6 +261,13 @@ namespace MaaWpfGui.ViewModels.UI
|
||||
Instances.SettingsViewModel.TimerModels.Timers[i].Min,
|
||||
0);
|
||||
DateTime restartDateTime = startTime.AddMinutes(-2);
|
||||
|
||||
// 确保0点的定时会在当日的23:58重启
|
||||
if (restartDateTime.Day != startTime.Day)
|
||||
{
|
||||
restartDateTime = restartDateTime.AddDays(1);
|
||||
}
|
||||
|
||||
if (currentTime == restartDateTime)
|
||||
{
|
||||
timeToChangeConfig = true;
|
||||
|
||||
Reference in New Issue
Block a user