Переглянути джерело

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)