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.
This commit is contained in:
jp9000
2015-03-02 00:46:43 -08:00
parent 7055775c7c
commit 7c8b053703
2 changed files with 8 additions and 0 deletions

View File

@@ -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)