From f74e3bfd4d106cecd75045e2d24d2a8eca4de5c4 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Thu, 24 Oct 2024 18:02:59 -0400 Subject: [PATCH] use new parented dialog for file open - much better window management experience --- minigui_addons/webview.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minigui_addons/webview.d b/minigui_addons/webview.d index 8726ed2..7663dd6 100644 --- a/minigui_addons/webview.d +++ b/minigui_addons/webview.d @@ -943,7 +943,7 @@ version(cef) { try { auto ptr = callback.passable(); browser.runOnWebView((wv) { - getOpenFileName((string name) { + getOpenFileName(wv.parentWindow, (string name) { auto callback = RC!cef_file_dialog_callback_t(ptr); auto list = libcef.string_list_alloc(); auto item = cef_string_t(name);