mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-20 19:09:29 +08:00
Call linux dialog on main thread
This commit is contained in:
parent
cf130a6e25
commit
38f6b1297d
@ -1556,8 +1556,8 @@ func runChooserDialog(window pointer, allowMultiple, createFolders, showHidden b
|
||||
selections := make(chan string)
|
||||
// run this on the gtk thread
|
||||
InvokeAsync(func() {
|
||||
go func() {
|
||||
response := C.gtk_dialog_run((*C.GtkDialog)(fc))
|
||||
go func() {
|
||||
if response == C.GTK_RESPONSE_ACCEPT {
|
||||
filenames := C.gtk_file_chooser_get_filenames((*C.GtkFileChooser)(fc))
|
||||
iter := filenames
|
||||
|
Loading…
Reference in New Issue
Block a user