chore: 定时启动添加日志

This commit is contained in:
uye
2024-09-23 11:44:49 +08:00
parent 13912fda44
commit 7a603abe59

View File

@@ -421,7 +421,7 @@ namespace MaaWpfGui.ViewModels.UI
});
}
private static (bool timeToStart, bool timeToChangeConfig, int configIndex) CheckTimers(DateTime currentTime)
private static (bool _timeToStart, bool _timeToChangeConfig, int _configIndex) CheckTimers(DateTime currentTime)
{
bool timeToStart = false;
bool timeToChangeConfig = false;
@@ -479,12 +479,14 @@ namespace MaaWpfGui.ViewModels.UI
if (timeToChangeConfig)
{
_logger.Information($"Scheduled configuration change: Timer Index: {configIndex}");
HandleConfigChange(configIndex);
return;
}
if (timeToStart)
{
_logger.Information($"Scheduled start: Timer Index: {configIndex}");
await HandleScheduledStart(configIndex);
}
}