提交 2de3973f 编写于 作者: J jp9000

UI: Allow temporarily disabling filter/source types

Implements the OBS_SOURCE_CAP_DISABLE capability flag in to the user
interface.
上级 da0e3ef0
......@@ -365,6 +365,8 @@ QMenu *OBSBasicFilters::CreateAddFilterPopupMenu(bool async)
if ((caps & OBS_SOURCE_DEPRECATED) != 0)
continue;
if ((caps & OBS_SOURCE_CAP_DISABLED) != 0)
continue;
auto it = types.begin();
for (; it != types.end(); ++it) {
......
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册