mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-06 07:36:12 -05:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user