mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 02:22:44 +01:00
get_supported_platforms built a slug->platform map with a plain dict comprehension. When a folder is mapped as a variant or alias of an existing platform, scanning resolves it to the parent slug, so two platform rows share the same slug. The comprehension let the later row (the variant) overwrite the parent, renaming it in the platform picker and Folder Mappings page. Prefer the canonical platform (fs_slug == slug) when building the map so a variant folder no longer shadows its parent. Fixes #3157 Generated-By: PostHog Code Task-Id: 571866ea-86a0-49c2-b62e-dbea077d0181