提交 b8acca7c 编写于 作者: J jp9000

UI: Hide deprecated sources from add source popup menu

上级 dc2915dc
......@@ -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"));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册