Reset duration modifier timers when stopping the plugin

This commit is contained in:
WarmUpTill 2022-12-03 06:29:40 +01:00 committed by WarmUpTill
parent ef0f6839e5
commit f3e5fb59f3
2 changed files with 5 additions and 3 deletions

View File

@ -423,10 +423,11 @@ void SwitcherData::Start()
}
}
void ResetMacroCounters()
void ResetMacros()
{
for (auto &m : switcher->macros) {
m->ResetCount();
m->ResetTimers();
}
}
@ -443,7 +444,7 @@ void SwitcherData::Stop()
th = nullptr;
writeToStatusFile("Advanced Scene Switcher stopped");
ResetMacroCounters();
ResetMacros();
}
server.stop();

View File

@ -62,11 +62,12 @@ public:
void EnablePauseHotkeys(bool);
bool PauseHotkeysEnabled();
void ResetTimers();
private:
void SetupHotkeys();
void ClearHotkeys();
void SetHotkeysDesc();
void ResetTimers();
void RunActions(bool &ret, bool ignorePause);
void RunActions(bool ignorePause);
void SetOnChangeHighlight();