mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-22 01:44:49 -05:00
Reset duration modifier timers when stopping the plugin
This commit is contained in:
parent
ef0f6839e5
commit
f3e5fb59f3
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user