fixed bug where exiting from options would softlock
This commit is contained in:
parent
e8ec987c6a
commit
655d000b51
2 changed files with 2 additions and 2 deletions
|
@ -263,7 +263,7 @@ func _on_PalettesButton_button_down() -> void:
|
|||
|
||||
func _on_OptionsScreen_exit():
|
||||
options_screen.visible = false
|
||||
$"%MenuPopup".grab_focus()
|
||||
$"%OptionsButton".grab_focus()
|
||||
|
||||
func _on_OptionsButton_button_down():
|
||||
options_screen.visible = true
|
||||
|
|
|
@ -40,7 +40,7 @@ func _unhandled_input(event: InputEvent) -> void:
|
|||
Options.save_options()
|
||||
|
||||
if can_exit and event.is_action_pressed("ui_cancel"):
|
||||
emit_signal("exit")
|
||||
if visible == true: emit_signal("exit")
|
||||
|
||||
|
||||
func _init_values() -> void:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue