diff --git a/source/funkin/ui/debug/stageeditor/StageEditorState.hx b/source/funkin/ui/debug/stageeditor/StageEditorState.hx index a536a09ee5..b854f7c606 100644 --- a/source/funkin/ui/debug/stageeditor/StageEditorState.hx +++ b/source/funkin/ui/debug/stageeditor/StageEditorState.hx @@ -582,7 +582,7 @@ class StageEditorState extends UIState if (FlxG.keys.justPressed.DELETE) onMenuItemClick("delete object"); if (FlxG.keys.justPressed.ENTER) onMenuItemClick("test stage"); if (FlxG.keys.justPressed.ESCAPE) onMenuItemClick("exit"); - if (FlxG.keys.justPressed.F1) onMenuItemClick("user guide"); + if (FlxG.keys.justPressed.F1 && welcomeDialog == null && userGuideDialog == null) onMenuItemClick("user guide"); if (FlxG.keys.justPressed.T) { @@ -1269,6 +1269,10 @@ class StageEditorState extends UIState userGuideDialog = new UserGuideDialog(); userGuideDialog.showDialog(); + userGuideDialog.onDialogClosed = function(_) { + userGuideDialog = null; + } + case "open folder": #if sys var absoluteBackupsPath:String = haxe.io.Path.join([Sys.getCwd(), BACKUPS_PATH]);