Skip to content

Commit

Permalink
Fix for fyne-io#5207
Browse files Browse the repository at this point in the history
  • Loading branch information
brucealthompson committed Oct 19, 2024
1 parent 8777e7f commit 9856635
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dialog/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,11 @@ func (f *fileDialog) setLocation(dir fyne.URI) error {
d = buildDir
buildDir = d + string(os.PathSeparator)
}

newDir := storage.NewFileURI(buildDir)
newURL := dir.Scheme() + "://" + filepath.ToSlash(buildDir)
newDir, err := storage.ParseURI(newURL)
if err != nil {
return err
}
isDir, err := storage.CanList(newDir)
if err != nil {
return err
Expand Down

0 comments on commit 9856635

Please sign in to comment.