Browse Source

UI: Reset sources list manually on first load

jp9000 7 years ago
parent
commit
fba2ff8b2c
2 changed files with 2 additions and 0 deletions
  1. 1 0
      UI/source-tree.hpp
  2. 1 0
      UI/window-basic-main.cpp

+ 1 - 0
UI/source-tree.hpp

@@ -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);}

+ 1 - 0
UI/window-basic-main.cpp

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