From 56ef128796ff69e8b5872b9a67a161f940a53751 Mon Sep 17 00:00:00 2001 From: Tobi-Mob <69400800+Tobi-Mob@users.noreply.github.com> Date: Sat, 4 Mar 2023 11:34:20 +0100 Subject: [PATCH] Fixed NotificationWMCloseRequest c# code With Godot 4.0 the casing seems to have changed from Wm to WM. --- tutorials/inputs/handling_quit_requests.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/inputs/handling_quit_requests.rst b/tutorials/inputs/handling_quit_requests.rst index 5bdf0e974..2ce7a77ec 100644 --- a/tutorials/inputs/handling_quit_requests.rst +++ b/tutorials/inputs/handling_quit_requests.rst @@ -41,7 +41,7 @@ Handling the notification is done as follows (on any node): public override void _Notification(int what) { - if (what == NotificationWmCloseRequest) + if (what == NotificationWMCloseRequest) GetTree().Quit(); // default behavior } @@ -82,7 +82,7 @@ program termination, you should send the notification yourself: .. code-tab:: csharp - GetTree().Root.PropagateNotification((int)NotificationWmCloseRequest); + GetTree().Root.PropagateNotification((int)NotificationWMCloseRequest); Sending this notification will inform all nodes about the program termination, but will not terminate the program itself *unlike in 3.X*. In order to achieve