mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 01:40:46 +08:00
fix: 刷理智结束时有概率报错
This commit is contained in:
@@ -771,12 +771,15 @@ namespace MaaWpfGui.Main
|
||||
DisposeTimer();
|
||||
}
|
||||
|
||||
_toastNotificationTimer = new DispatcherTimer
|
||||
{
|
||||
Interval = recoveryTime - DateTimeOffset.Now.AddMinutes(6),
|
||||
};
|
||||
_toastNotificationTimer.Tick += OnToastNotificationTimerTick;
|
||||
_toastNotificationTimer.Start();
|
||||
var interval = recoveryTime - DateTimeOffset.Now.AddMinutes(6);
|
||||
if (interval > 0) {
|
||||
_toastNotificationTimer = new DispatcherTimer
|
||||
{
|
||||
Interval = interval,
|
||||
};
|
||||
_toastNotificationTimer.Tick += OnToastNotificationTimerTick;
|
||||
_toastNotificationTimer.Start();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user