Skip to content

Commit

Permalink
Make the code compile again
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Nov 19, 2023
1 parent 227a309 commit e8c3520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dialog/file_xdg.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ func getFavoriteLocations() (map[string]fyne.ListableURI, error) {

func fileOpenOSOverride(d *FileDialog) bool {
go func() {
folderCallback, folder := d.callback.(func(fyne.ListableURI, error))
options := &filechooser.OpenOptions{
Modal: true,
Directory: folder,
Expand All @@ -87,7 +88,6 @@ func fileOpenOSOverride(d *FileDialog) bool {
options.Location = d.startingLocation.Path()
}

folderCallback, folder := d.callback.(func(fyne.ListableURI, error))
if folder {
uris, err := filechooser.OpenFile("", "Open Folder", options)
if err != nil {
Expand Down

0 comments on commit e8c3520

Please sign in to comment.