Merge pull request #1046 from RytoEX/fix-do-not-duplicate-copy-paste

UI: Disallow pasting duplicates of sources with DO_NOT_DUPLICATE
This commit is contained in:
Jim 2017-10-15 20:08:28 -07:00 committed by GitHub
commit 2d8925e1d8

View File

@ -5757,7 +5757,12 @@ void OBSBasic::on_actionCopySource_triggered()
copyVisible = obs_sceneitem_visible(item);
ui->actionPasteRef->setEnabled(true);
ui->actionPasteDup->setEnabled(true);
uint32_t output_flags = obs_source_get_output_flags(source);
if ((output_flags & OBS_SOURCE_DO_NOT_DUPLICATE) == 0)
ui->actionPasteDup->setEnabled(true);
else
ui->actionPasteDup->setEnabled(false);
}
void OBSBasic::on_actionPasteRef_triggered()