提交 7c8b0537 编写于 作者: J jp9000

UI: Indicate source is being shown in properties

When viewing the properties of a source, there's no way to specify that
a source is actually being shown or not to the core.  This uses the new
obs_source_inc_showing and obs_source_dec_showing to tell the source
that it's being shown/hidden in this part of the program without
necessarily having to use a new render view just to render it.
上级 7055775c
......@@ -86,6 +86,13 @@ OBSBasicProperties::OBSBasicProperties(QWidget *parent, OBSSource source_)
const char *name = obs_source_get_name(source);
setWindowTitle(QTStr("Basic.PropertiesWindow").arg(QT_UTF8(name)));
obs_source_inc_showing(source);
}
OBSBasicProperties::~OBSBasicProperties()
{
obs_source_dec_showing(source);
}
void OBSBasicProperties::SourceRemoved(void *data, calldata_t *params)
......
......@@ -57,6 +57,7 @@ private slots:
public:
OBSBasicProperties(QWidget *parent, OBSSource source_);
~OBSBasicProperties();
void Init();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册