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:
parent
edcb80ae8b
commit
d08ede33cd
1 changed files with 6 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue