mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
fix for scene not being written to file
This commit is contained in:
parent
42dcd9dec4
commit
e466bf9750
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user