diff --git a/src/advanced-scene-switcher.cpp b/src/advanced-scene-switcher.cpp index 27a06836..5c64444e 100644 --- a/src/advanced-scene-switcher.cpp +++ b/src/advanced-scene-switcher.cpp @@ -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(); diff --git a/src/macro-core/macro.hpp b/src/macro-core/macro.hpp index 95c27315..8b74e380 100644 --- a/src/macro-core/macro.hpp +++ b/src/macro-core/macro.hpp @@ -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();