add settings option to choose startup page

This commit is contained in:
Drew Weymouth
2023-04-29 20:51:45 -07:00
parent ae1b767255
commit a9263c8d4e
3 changed files with 25 additions and 7 deletions
+4
View File
@@ -27,6 +27,7 @@ type AppConfig struct {
LastCheckedVersion string
EnableSystemTray bool
CloseToSystemTray bool
StartupPage string
// Experimental - may be removed in future
FontNormalTTF string
@@ -102,6 +103,8 @@ type Config struct {
ReplayGain ReplayGainConfig
}
var SupportedStartupPages = []string{"Albums", "Favorites", "Playlists"}
func DefaultConfig(appVersionTag string) *Config {
return &Config{
Application: AppConfig{
@@ -110,6 +113,7 @@ func DefaultConfig(appVersionTag string) *Config {
LastCheckedVersion: appVersionTag,
EnableSystemTray: true,
CloseToSystemTray: false,
StartupPage: "Albums",
},
AlbumPage: AlbumPageConfig{
TracklistColumns: []string{"Artist", "Time", "Plays", "Favorite", "Rating"},