mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-25 07:18:52 -04:00
UI: Update order of profiles and scene collections in their menus
The old method to update the profile menu iterated over the directory entries of the profile directory in the order provided by the operating system. The system calls used for this explicitly state that the order of items is "undefined" but seems to have followed a case-insensitive alphabetical order on Windows, an order which users have come to expect. The new code uses a std::map to store discovered profiles and scene collections, which is ordered by key and with std::string used for keys this means a lexicographical sorting of keys which is case-sensitive. To restore the old behavior, profiles and scene collections need to be added to their respective menus sorted by case-insensitive order, which has to be done manually before adding the items.
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f