Skip to content

Commit

Permalink
Don't "find" app files for dialog tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jan 27, 2025
1 parent 05c69bb commit 42cd78f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dialog/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,10 @@ func getFavoriteOrder() []string {
}

func hasAppFiles(a fyne.App) bool {
if a.UniqueID() == "testApp" {
return false
}

return len(a.Storage().List()) > 0
}

Expand Down
1 change: 1 addition & 0 deletions dialog/file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,7 @@ func TestViewPreferences(t *testing.T) {
}

func TestFileFavorites(t *testing.T) {
_ = test.NewApp()
win := test.NewTempWindow(t, widget.NewLabel("Content"))

dlg := NewFileOpen(func(reader fyne.URIReadCloser, err error) {
Expand Down

0 comments on commit 42cd78f

Please sign in to comment.