From 547f307b5357481a7b7f6f0bcfb4d76991fc31cf Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Tue, 9 Jul 2024 15:04:16 +0300 Subject: [PATCH] Fix crash on Godot 4.3 when the mouse is inside the window when Pixelorama is starting --- src/Main.gd | 2 ++ 1 file changed, 2 insertions(+) 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()