mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-04-25 15:34:48 -05:00
Reset macro counters when stopping the plugin
This commit is contained in:
parent
ec6cffcd6a
commit
a5edbc8b88
|
|
@ -379,6 +379,13 @@ void SwitcherData::Start()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ResetMacroCounters()
|
||||||
|
{
|
||||||
|
for (auto &m : switcher->macros) {
|
||||||
|
m.ResetCount();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void SwitcherData::Stop()
|
void SwitcherData::Stop()
|
||||||
{
|
{
|
||||||
if (th && th->isRunning()) {
|
if (th && th->isRunning()) {
|
||||||
|
|
@ -390,6 +397,7 @@ void SwitcherData::Stop()
|
||||||
th = nullptr;
|
th = nullptr;
|
||||||
|
|
||||||
writeToStatusFile("Advanced Scene Switcher stopped");
|
writeToStatusFile("Advanced Scene Switcher stopped");
|
||||||
|
ResetMacroCounters();
|
||||||
}
|
}
|
||||||
|
|
||||||
server.stop();
|
server.stop();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user