Scene strip now renders in canonical F-key order regardless of persisted SortOrder. The strip loads Scenes ORDER BY SortOrder while each tab's F-key label is name-derived, so a session that persisted Chat before BRB (found on the creator's DB: SortOrder 2/3) showed tabs 'Chat F4' then 'BRB F3'. MainViewModel.LoadLayout now calls the new ReorderScenesToCanonical() - the five canonical scenes reorder to Starting, Live, BRB, Chat, Ending (F1-F5, stable among renamed non-canonical scenes), and the next auto-save re-stamps SortOrder so the heal persists. One integration test (SceneOrderTests) seeds the swapped-order DB and asserts loaded order, F1-F5 labels, and that a save persists the corrected ordering. 423 pass, 0 build warnings. (Unit: scene order)

This commit is contained in:
2026-10-10 12:09:07 -07:00
parent 63bf8444bd
commit 06f88f4142
5 changed files with 162 additions and 42 deletions
+1
View File
@@ -411,6 +411,7 @@ public partial class MainViewModel : ViewModelBase
foreach (var name in SceneCatalog.All)
AddScene(name);
}
ReorderScenesToCanonical();
HealBackgrounds();
HealZoomLayers();
RefreshHotkeyLabels();