From 5a27d93cfa7b05b38963876d4a3a1805692c207b Mon Sep 17 00:00:00 2001 From: cg2121 Date: Sat, 24 Feb 2024 19:10:34 -0600 Subject: [PATCH] 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. --- UI/source-tree.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UI/source-tree.cpp b/UI/source-tree.cpp index 88bbf8fae..799b5f064 100644 --- a/UI/source-tree.cpp +++ b/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)