mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-07 09:05:57 -05:00
Reset duration modifier timers when stopping the plugin
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user