mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-18 19:28:56 -05:00
UI: Disable screenshot action if item has no video
This disables the source screenshot action in the context menu if the source has no video.
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
edcb80ae8b
commit
d08ede33cd
@@ -5689,8 +5689,12 @@ void OBSBasic::CreateSourcePopupMenu(int idx, bool preview)
|
||||
popup.addMenu(sourceProjector);
|
||||
popup.addAction(QTStr("SourceWindow"), this,
|
||||
SLOT(OpenSourceWindow()));
|
||||
popup.addAction(QTStr("Screenshot.Source"), this,
|
||||
SLOT(ScreenshotSelectedSource()));
|
||||
|
||||
QAction *screenshotAction =
|
||||
popup.addAction(QTStr("Screenshot.Source"), this,
|
||||
SLOT(ScreenshotSelectedSource()));
|
||||
screenshotAction->setEnabled(flags & OBS_SOURCE_VIDEO);
|
||||
|
||||
popup.addSeparator();
|
||||
|
||||
if (flags & OBS_SOURCE_INTERACTION)
|
||||
|
||||
Reference in New Issue
Block a user