Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
KoBeWi opened this issue Jul 18, 2023 · 1 comment
Closed

Comments

@KoBeWi
Copy link
Member

KoBeWi commented Jul 18, 2023

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

@bruvzg
Copy link
Member

bruvzg commented Jan 13, 2024

This should be fixed by #79693

@KoBeWi KoBeWi closed this as completed Jan 13, 2024
@KoBeWi KoBeWi modified the milestones: 4.x, 4.2 Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants