瀏覽代碼

UI: Fix context bar not updating on delete

This fixes a bug where the source context bar wouldn't update
when a scene item is deleted.
cg2121 1 年之前
父節點
當前提交
5a27d93cfa
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      UI/source-tree.cpp

+ 2 - 0
UI/source-tree.cpp

@@ -839,6 +839,8 @@ void SourceTreeModel::Remove(obs_sceneitem_t *item)
 
 	if (is_group)
 		UpdateGroupState(true);
+
+	OBSBasic::Get()->UpdateContextBarDeferred();
 }
 
 OBSSceneItem SourceTreeModel::Get(int idx)