add history and navigation controls

This commit is contained in:
Drew Weymouth
2023-01-01 09:34:51 -08:00
parent 0ff1b6bafd
commit e27cb1a048
2 changed files with 37 additions and 3 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ func NewMainWindow(fyneApp fyne.App, appName string, app *backend.App) MainWindo
m.Window.SetTitle(song.Title)
})
app.ServerManager.OnServerConnected(func() {
m.Router.OpenRoute(AlbumsRoute(backend.AlbumSortFrequentlyPlayed))
m.Router.OpenRoute(AlbumsRoute(backend.AlbumSortRecentlyAdded))
})
return m
}