From b8acca7cca6ccdfb464372a189a7cc2533797916 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Wed, 14 Sep 2016 16:32:56 -0700 Subject: [PATCH] UI: Hide deprecated sources from add source popup menu --- UI/window-basic-main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 83bd9e1be..f04a756a1 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -3212,9 +3212,12 @@ QMenu *OBSBasic::CreateAddSourcePopupMenu() while (obs_enum_input_types(idx++, &type)) { const char *name = obs_source_get_display_name(type); + uint32_t caps = obs_get_source_output_flags(type); - addSource(popup, type, name); - foundValues = true; + if ((caps & OBS_SOURCE_DEPRECATED) == 0) { + addSource(popup, type, name); + foundValues = true; + } } addSource(popup, "scene", Str("Basic.Scene"));