Skip to content

Commit

Permalink
Don't open it if it's already open
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasercar committed Feb 15, 2025
1 parent fdfdea7 commit a8debfd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/funkin/ui/debug/charting/ChartEditorState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2879,6 +2879,7 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
playbarBPM.onClick = _ -> {
if (FlxG.keys.pressed.CONTROL)
{
if (menubarItemToggleToolboxMetadata.selected) return;
this.setToolboxState(CHART_EDITOR_TOOLBOX_METADATA_LAYOUT, true);
// TODO: Figure out a way to prevent this from calling the on change event / opening the dialog twice
menubarItemToggleToolboxMetadata.selected = true;
Expand All @@ -2898,6 +2899,7 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
playbarDifficulty.onClick = _ -> {
if (FlxG.keys.pressed.CONTROL)
{
if (menubarItemToggleToolboxDifficulty.selected) return;
this.setToolboxState(CHART_EDITOR_TOOLBOX_DIFFICULTY_LAYOUT, true);
// TODO: Figure out a way to prevent this from calling the on change event / opening the dialog twice
menubarItemToggleToolboxDifficulty.selected = true;
Expand Down

0 comments on commit a8debfd

Please sign in to comment.