summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcg2121 <claytong1214@gmail.com>2024-02-24 19:10:34 -0600
committerRyan Foster <ryan@obsproject.com>2024-02-27 15:26:26 -0500
commit5a27d93cfa7b05b38963876d4a3a1805692c207b (patch)
tree2d3f5c907aec60b2f809dca18d53fc9153370033
parentcdef2a206856aaaeded96ecdd76c4ef8c82da468 (diff)
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.
-rw-r--r--UI/source-tree.cpp2
1 files changed, 2 insertions, 0 deletions
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)