mirror of https://github.com/adamdruppe/arsd.git
use new parented dialog for file open - much better window management experience
This commit is contained in:
parent
3e0d5b7acd
commit
f74e3bfd4d
|
@ -943,7 +943,7 @@ version(cef) {
|
||||||
try {
|
try {
|
||||||
auto ptr = callback.passable();
|
auto ptr = callback.passable();
|
||||||
browser.runOnWebView((wv) {
|
browser.runOnWebView((wv) {
|
||||||
getOpenFileName((string name) {
|
getOpenFileName(wv.parentWindow, (string name) {
|
||||||
auto callback = RC!cef_file_dialog_callback_t(ptr);
|
auto callback = RC!cef_file_dialog_callback_t(ptr);
|
||||||
auto list = libcef.string_list_alloc();
|
auto list = libcef.string_list_alloc();
|
||||||
auto item = cef_string_t(name);
|
auto item = cef_string_t(name);
|
||||||
|
|
Loading…
Reference in New Issue