diff --git a/src/Main.gd b/src/Main.gd index 2376e6f00..a000895fd 100644 --- a/src/Main.gd +++ b/src/Main.gd @@ -369,6 +369,8 @@ func _handle_cmdline_arguments() -> void: func _notification(what: int) -> void: + if not is_inside_tree(): + return match what: NOTIFICATION_WM_CLOSE_REQUEST: show_quit_dialog()