From d9b4fbba1ac28290e5d043f7c138d35795c169db Mon Sep 17 00:00:00 2001 From: Clayton Groeneveld Date: Tue, 13 Apr 2021 18:28:05 -0500 Subject: [PATCH] UI: Disable properties for groups in context menu Makes it consistent with the source context menu. --- UI/window-basic-main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 1daf7f2ef..b6147aef4 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -5422,8 +5422,10 @@ void OBSBasic::CreateSourcePopupMenu(int idx, bool preview) OBS_SOURCE_INTERACTION); popup.addAction(QTStr("Filters"), this, SLOT(OpenFilters())); - popup.addAction(QTStr("Properties"), this, - SLOT(on_actionSourceProperties_triggered())); + action = popup.addAction( + QTStr("Properties"), this, + SLOT(on_actionSourceProperties_triggered())); + action->setEnabled(obs_source_configurable(source)); } popup.exec(QCursor::pos());