Switching difficulty now forces the selection to be cleared.

This commit is contained in:
EliteMasterEric
2025-11-28 04:45:16 -05:00
committed by Hundrec
parent 85c549c15c
commit eed0665e42
@@ -1739,6 +1739,10 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
noteTooltipsDirty = true;
notePreviewViewportBoundsDirty = true;
// Switching difficulties should automatically clear the selection.
currentNoteSelection = [];
currentEventSelection = [];
switchToCurrentInstrumental();
postLoadInstrumental();
@@ -1762,6 +1766,10 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
noteTooltipsDirty = true;
notePreviewViewportBoundsDirty = true;
// Switching difficulties should automatically clear the selection.
currentNoteSelection = [];
currentEventSelection = [];
return selectedDifficulty;
}