Browse Source

UI: Disable properties for groups in context menu

Makes it consistent with the source context menu.
Clayton Groeneveld 4 years ago
parent
commit
d9b4fbba1a
1 changed files with 4 additions and 2 deletions
  1. 4 2
      UI/window-basic-main.cpp

+ 4 - 2
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());