mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-12 20:28:11 -05:00
fix for scene not being written to file
This commit is contained in:
@@ -937,6 +937,7 @@ void SwitcherData::Thread()
|
||||
duration = chrono::milliseconds(interval);
|
||||
extraSleep = 0;
|
||||
switcher->Prune();
|
||||
writeSceneInfoToFile();
|
||||
//sleep for a bit
|
||||
cv.wait_for(lock, duration);
|
||||
if (switcher->stop)
|
||||
|
||||
@@ -73,6 +73,9 @@ void SceneSwitcher::on_browseButton_2_clicked()
|
||||
|
||||
void SwitcherData::writeSceneInfoToFile()
|
||||
{
|
||||
if (!fileIO.writeEnabled)
|
||||
return;
|
||||
|
||||
obs_source_t* currentSource = obs_frontend_get_current_scene();
|
||||
|
||||
QFile file(QString::fromStdString(fileIO.writePath));
|
||||
|
||||
Reference in New Issue
Block a user