mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-12 04:11:06 -05:00
Fix "Date" condition returning true unexpectedly
This could happen if the plugin was stopped on the General tab and restarted or the first time the plugin was started.
This commit is contained in:
@@ -111,10 +111,10 @@ bool MacroWasPausedSince(
|
||||
|
||||
bool MacroWasCheckedSinceLastStart(Macro *macro)
|
||||
{
|
||||
return macro ? macro->LastConditionCheckTime()
|
||||
.time_since_epoch()
|
||||
.count() != 0
|
||||
: false;
|
||||
if (!macro) {
|
||||
return false;
|
||||
}
|
||||
return macro->LastConditionCheckTime().time_since_epoch().count() != 0;
|
||||
}
|
||||
|
||||
void AddMacroHelperThread(Macro *macro, std::thread &&newThread)
|
||||
|
||||
Reference in New Issue
Block a user