Sort scenes alphabetically

Prior to implementing canvas suppor they were in the order they are in
the scenes dock.
After switching from obs_frontend_get_scene_names() to
obs_canvas_enum_scenes() this seems to not always be the case.
This commit is contained in:
WarmUpTill 2025-11-01 13:13:12 +01:00 committed by WarmUpTill
parent 8f92ba3ffa
commit f93175db77

View File

@ -334,6 +334,7 @@ static QStringList getCanvasScenesList(obs_weak_canvas_t *weakCanvas)
QStringList list;
obs_canvas_enum_scenes(canvas, enumCanvasScenes, &list);
list.sort();
return list;
}