persist album page tracklist column visibility preference

This commit is contained in:
Drew Weymouth
2023-02-18 21:04:56 -08:00
parent afe37609ea
commit 85e79921da
6 changed files with 64 additions and 23 deletions
+8
View File
@@ -20,9 +20,14 @@ type AppConfig struct {
WindowHeight int
}
type AlbumPageConfig struct {
TracklistColumns []string
}
type Config struct {
Application AppConfig
Servers []*ServerConfig
AlbumPage AlbumPageConfig
}
func DefaultConfig() *Config {
@@ -31,6 +36,9 @@ func DefaultConfig() *Config {
WindowWidth: 1000,
WindowHeight: 800,
},
AlbumPage: AlbumPageConfig{
TracklistColumns: []string{"Artist", "Time", "Plays"},
},
}
}