Skip to content

Commit

Permalink
Use new API for fyne.Do
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Jan 11, 2025
1 parent d135a48 commit d9dbf25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dialog/file_xdg_flatpak.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ func fileOpenOSOverride(d *FileDialog) bool {
if folder {
go func() {
folder, err := openFolder(windowHandle, options)
fyne.CurrentApp().Driver().CallFromGoroutine(func() {
fyne.Do(func() {
folderCallback(folder, err)
})
}()
} else {
go func() {
file, err := openFile(windowHandle, options)
fyne.CurrentApp().Driver().CallFromGoroutine(func() {
fyne.Do(func() {
fileCallback(file, err)
})
}()
Expand All @@ -113,7 +113,7 @@ func fileSaveOSOverride(d *FileDialog) bool {

go func() {
file, err := saveFile(windowHandle, options)
fyne.CurrentApp().Driver().CallFromGoroutine(func() {
fyne.Do(func() {
callback(file, err)
})
}()
Expand Down

0 comments on commit d9dbf25

Please sign in to comment.