clear tracks from tracklists before releasing to widget pool

This commit is contained in:
Drew Weymouth
2023-07-10 13:51:09 -07:00
parent a86a81f1e6
commit f75a5e27a5
6 changed files with 6 additions and 0 deletions
+1
View File
@@ -99,6 +99,7 @@ func (a *NowPlayingPage) CreateRenderer() fyne.WidgetRenderer {
}
func (a *NowPlayingPage) Save() SavedPage {
a.tracklist.Clear()
a.pool.Release(util.WidgetTypeTracklist, a.tracklist)
nps := a.nowPlayingPageState
return &nps