浏览代码

UI: Reset sources list manually on first load

jp9000 7 年之前
父节点
当前提交
fba2ff8b2c
共有 2 个文件被更改,包括 2 次插入0 次删除
  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