Skip to content

Commit 1745fe1

Browse files
committed
Merge pull request godotengine#99837 from thiagola92/docs_window_files_dropped
Docs: update example from Window signal files_dropped
2 parents f6afacb + e30da67 commit 1745fe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/classes/Window.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@
727727
Emitted when files are dragged from the OS file manager and dropped in the game window. The argument is a list of file paths.
728728
[codeblock]
729729
func _ready():
730-
get_viewport().files_dropped.connect(on_files_dropped)
730+
get_window().files_dropped.connect(on_files_dropped)
731731

732732
func on_files_dropped(files):
733733
print(files)

0 commit comments

Comments
 (0)