Fix #316: Add setting to show notification on track change

This commit is contained in:
Drew Weymouth
2024-01-20 14:42:22 -08:00
parent edc3ef7bfa
commit 91aa92706d
3 changed files with 40 additions and 27 deletions
+26 -24
View File
@@ -31,18 +31,19 @@ type ServerConfig struct {
}
type AppConfig struct {
WindowWidth int
WindowHeight int
LastCheckedVersion string
LastLaunchedVersion string
EnableSystemTray bool
CloseToSystemTray bool
StartupPage string
SettingsTab string
AllowMultiInstance bool
MaxImageCacheSizeMB int
SavePlayQueue bool
DefaultPlaylistID string
WindowWidth int
WindowHeight int
LastCheckedVersion string
LastLaunchedVersion string
EnableSystemTray bool
CloseToSystemTray bool
StartupPage string
SettingsTab string
AllowMultiInstance bool
MaxImageCacheSizeMB int
SavePlayQueue bool
DefaultPlaylistID string
ShowTrackChangeNotification bool
// Experimental - may be removed in future
FontNormalTTF string
@@ -138,18 +139,19 @@ var SupportedStartupPages = []string{"Albums", "Favorites", "Playlists"}
func DefaultConfig(appVersionTag string) *Config {
return &Config{
Application: AppConfig{
WindowWidth: 1000,
WindowHeight: 800,
LastCheckedVersion: appVersionTag,
LastLaunchedVersion: "",
EnableSystemTray: true,
CloseToSystemTray: false,
StartupPage: "Albums",
SettingsTab: "General",
AllowMultiInstance: false,
MaxImageCacheSizeMB: 50,
UIScaleSize: "Normal",
SavePlayQueue: false,
WindowWidth: 1000,
WindowHeight: 800,
LastCheckedVersion: appVersionTag,
LastLaunchedVersion: "",
EnableSystemTray: true,
CloseToSystemTray: false,
StartupPage: "Albums",
SettingsTab: "General",
AllowMultiInstance: false,
MaxImageCacheSizeMB: 50,
UIScaleSize: "Normal",
SavePlayQueue: false,
ShowTrackChangeNotification: false,
},
AlbumPage: AlbumPageConfig{
TracklistColumns: []string{"Artist", "Time", "Plays", "Favorite", "Rating"},