Skip to content

Commit

Permalink
fix issue fyne-io#1235
Browse files Browse the repository at this point in the history
  • Loading branch information
godcong committed Aug 5, 2020
1 parent f0cba82 commit 3e4592e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions dialog/fileitem.go
Expand Up @@ -59,14 +59,13 @@ func (i *fileDialogItem) isDirectory() bool {
func (f *fileDialog) newFileItem(path string, dir bool) *fileDialogItem {
var icon fyne.CanvasObject
var name string
if dir {
if dir {
icon = canvas.NewImageFromResource(theme.FolderIcon())
name = filepath.Base(path)
name = filepath.Base(path)
} else {
icon = NewFileIcon(storage.NewURI("file://" + path))
name = fileName(path)
name = fileName(path)
}


ret := &fileDialogItem{
picker: f,
Expand Down

0 comments on commit 3e4592e

Please sign in to comment.