mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
[Windows] Initialize COM as apartment-threaded.
This commit is contained in:
@@ -277,7 +277,12 @@ Error DisplayServerWindows::file_dialog_show(const String &p_title, const String
|
||||
pfd->SetFileTypes(filters.size(), filters.ptr());
|
||||
pfd->SetFileTypeIndex(0);
|
||||
|
||||
hr = pfd->Show(nullptr);
|
||||
WindowID window_id = _get_focused_window_or_popup();
|
||||
if (!windows.has(window_id)) {
|
||||
window_id = MAIN_WINDOW_ID;
|
||||
}
|
||||
|
||||
hr = pfd->Show(windows[window_id].hWnd);
|
||||
if (SUCCEEDED(hr)) {
|
||||
Vector<String> file_names;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user