Revert "UI: Cleanup on_scenes_currentItemChanged function"
This reverts commit c497342fd695b980300a80fedec6c4cac155aa87. Fixes a bug where the sources list would not update after 5b25dec714e4.
This commit is contained in:
parent
15e37f96d1
commit
2b69adf3bc
@ -4656,11 +4656,22 @@ void OBSBasic::AdvAudioPropsDestroyed()
|
||||
void OBSBasic::on_scenes_currentItemChanged(QListWidgetItem *current,
|
||||
QListWidgetItem *prev)
|
||||
{
|
||||
obs_source_t *source = NULL;
|
||||
|
||||
if (current) {
|
||||
OBSScene scene = GetOBSRef<OBSScene>(current);
|
||||
SetCurrentScene(scene);
|
||||
obs_scene_t *scene;
|
||||
|
||||
scene = GetOBSRef<OBSScene>(current);
|
||||
source = obs_scene_get_source(scene);
|
||||
}
|
||||
|
||||
SetCurrentScene(source);
|
||||
|
||||
if (api)
|
||||
api->on_event(OBS_FRONTEND_EVENT_PREVIEW_SCENE_CHANGED);
|
||||
|
||||
UpdateContextBar();
|
||||
|
||||
UNUSED_PARAMETER(prev);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user