UI: Reset sources list manually on first load

This commit is contained in:
jp9000 2018-08-29 13:06:12 -07:00
parent 76a050ee04
commit fba2ff8b2c
2 changed files with 2 additions and 0 deletions

View File

@ -149,6 +149,7 @@ public:
explicit SourceTree(QWidget *parent = nullptr);
inline bool IgnoreReorder() const {return ignoreReorder;}
inline void Reset() {GetStm()->SceneChanged();}
inline void Clear() {GetStm()->Clear();}
inline void Add(obs_sceneitem_t *item) {GetStm()->Add(item);}

View File

@ -1515,6 +1515,7 @@ void OBSBasic::OBSInit()
ProfileScope("OBSBasic::Load");
disableSaving--;
Load(savePath);
ui->sources->Reset();
disableSaving++;
}
#endif