Skip to content

Opening native file dialog on Windows makes the base window unresponsive #79642

Closed
@KoBeWi

Description

Godot version

4.2 0c2144d

System information

Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 30.0.15.1403) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)

Issue description

When you use DisplayServer.file_dialog_show(), Godot freezes until the dialog is closed:

godot.windows.editor.dev.x86_64_6xtybPE0Bk.mp4

For reference, here's how Chrome handles it (🔊):

chrome_OTwDUFsve1.mp4

Steps to reproduce

  1. Run this on Windows
@tool
extends EditorScript

func _run() -> void:
	DisplayServer.file_dialog_show("Dialoog", "C:/", "", false, DisplayServer.FILE_DIALOG_MODE_OPEN_FILE, [], Callable())
  1. Click Godot like crazy until it dies

Minimal reproduction project

N/A

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions