UI: Allow temporarily disabling filter/source types

Implements the OBS_SOURCE_CAP_DISABLE capability flag in to the user
interface.
This commit is contained in:
jp9000 committed 2018-01-03 17:04:04 -08:00
1 parent da0e3ef0ee
commit 2de3973fae
2 files changed
+5

No files matched your search

+3
View File
@@ -4042,6 +4042,9 @@ QMenu *OBSBasic::CreateAddSourcePopupMenu()
const char *name = obs_source_get_display_name(type);
uint32_t caps = obs_get_source_output_flags(type);
if ((caps & OBS_SOURCE_CAP_DISABLED) != 0)
continue;
if ((caps & OBS_SOURCE_DEPRECATED) == 0) {
addSource(popup, type, name);
} else {