mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-02 14:45:47 -05:00
Improve plugin state action
Add options to check for ... * Initial plugin start * Plugin restart * Scene collection change
This commit is contained in:
@@ -151,6 +151,7 @@ void SwitcherData::Thread()
|
||||
std::chrono::milliseconds duration;
|
||||
auto startTime = std::chrono::high_resolution_clock::now();
|
||||
auto endTime = std::chrono::high_resolution_clock::now();
|
||||
switcher->firstIntervalAfterStop = true;
|
||||
|
||||
while (true) {
|
||||
std::unique_lock<std::mutex> lock(m);
|
||||
@@ -251,6 +252,8 @@ void SwitcherData::Thread()
|
||||
}
|
||||
|
||||
writeSceneInfoToFile();
|
||||
switcher->firstInterval = false;
|
||||
switcher->firstIntervalAfterStop = false;
|
||||
}
|
||||
|
||||
blog(LOG_INFO, "stopped");
|
||||
|
||||
Reference in New Issue
Block a user