UI: Add functions to open properties and filters
This commit is contained in:
parent
f0d372bdd7
commit
5b18faeb49
7 changed files with 63 additions and 5 deletions
|
|
@ -6007,14 +6007,24 @@ void OBSBasic::SceneNameEdited(QWidget *editor,
|
|||
UNUSED_PARAMETER(endHint);
|
||||
}
|
||||
|
||||
void OBSBasic::OpenFilters()
|
||||
void OBSBasic::OpenFilters(OBSSource source)
|
||||
{
|
||||
OBSSceneItem item = GetCurrentSceneItem();
|
||||
OBSSource source = obs_sceneitem_get_source(item);
|
||||
|
||||
if (source == nullptr) {
|
||||
OBSSceneItem item = GetCurrentSceneItem();
|
||||
source = obs_sceneitem_get_source(item);
|
||||
}
|
||||
CreateFiltersWindow(source);
|
||||
}
|
||||
|
||||
void OBSBasic::OpenProperties(OBSSource source)
|
||||
{
|
||||
if (source == nullptr) {
|
||||
OBSSceneItem item = GetCurrentSceneItem();
|
||||
source = obs_sceneitem_get_source(item);
|
||||
}
|
||||
CreatePropertiesWindow(source);
|
||||
}
|
||||
|
||||
void OBSBasic::OpenSceneFilters()
|
||||
{
|
||||
OBSScene scene = GetCurrentScene();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue