fixed bug where exiting from options would softlock

This commit is contained in:
pennyrigate 2024-07-12 00:36:02 -04:00
parent e8ec987c6a
commit 655d000b51
2 changed files with 2 additions and 2 deletions

View file

@ -263,7 +263,7 @@ func _on_PalettesButton_button_down() -> void:
func _on_OptionsScreen_exit(): func _on_OptionsScreen_exit():
options_screen.visible = false options_screen.visible = false
$"%MenuPopup".grab_focus() $"%OptionsButton".grab_focus()
func _on_OptionsButton_button_down(): func _on_OptionsButton_button_down():
options_screen.visible = true options_screen.visible = true

View file

@ -40,7 +40,7 @@ func _unhandled_input(event: InputEvent) -> void:
Options.save_options() Options.save_options()
if can_exit and event.is_action_pressed("ui_cancel"): if can_exit and event.is_action_pressed("ui_cancel"):
emit_signal("exit") if visible == true: emit_signal("exit")
func _init_values() -> void: func _init_values() -> void: