From e30da67ce9c770ef11557c26d3748d389026c740 Mon Sep 17 00:00:00 2001 From: thiagola92 Date: Fri, 29 Nov 2024 11:38:04 -0300 Subject: [PATCH] Docs: update example from Window signal files_dropped --- doc/classes/Window.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/Window.xml b/doc/classes/Window.xml index 6e833ef25a..43e8066178 100644 --- a/doc/classes/Window.xml +++ b/doc/classes/Window.xml @@ -727,7 +727,7 @@ Emitted when files are dragged from the OS file manager and dropped in the game window. The argument is a list of file paths. [codeblock] func _ready(): - get_viewport().files_dropped.connect(on_files_dropped) + get_window().files_dropped.connect(on_files_dropped) func on_files_dropped(files): print(files)