Skip to content

Commit

Permalink
clean render cache on testcanvas.Refresh()
Browse files Browse the repository at this point in the history
  • Loading branch information
elliot-aeroqual committed Feb 6, 2023
1 parent 01b13c2 commit 2eb12d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/testcanvas.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"fyne.io/fyne/v2/driver/desktop"
"fyne.io/fyne/v2/internal"
"fyne.io/fyne/v2/internal/app"
"fyne.io/fyne/v2/internal/cache"
"fyne.io/fyne/v2/theme"
)

Expand Down Expand Up @@ -161,6 +162,7 @@ func (c *testCanvas) PixelCoordinateForPosition(pos fyne.Position) (int, int) {
}

func (c *testCanvas) Refresh(fyne.CanvasObject) {
cache.Clean(true)
}

func (c *testCanvas) Resize(size fyne.Size) {
Expand Down

0 comments on commit 2eb12d1

Please sign in to comment.