mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-27 15:48:44 -05:00
UI: Add functions to open properties and filters
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user