reset focus on page change

This commit is contained in:
Drew Weymouth
2023-01-21 10:00:06 -08:00
parent 373925dc53
commit 51fc4b284f
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -106,6 +106,7 @@ func (b *BrowsingPane) doSetPage(p Page) bool {
if np, ok := p.(CanShowNowPlaying); ok {
np.OnSongChange(b.app.PlaybackManager.NowPlaying())
}
b.pageContainer.Remove(b.curPage)
b.pageContainer.Objects[1] = p
b.Refresh()
return true