add system tray + close to tray support (no settigs UI yet)

This commit is contained in:
Drew Weymouth
2023-04-06 19:15:11 -07:00
parent 198110d1dc
commit 8086262a8b
3 changed files with 42 additions and 3 deletions
+4
View File
@@ -20,6 +20,8 @@ type AppConfig struct {
WindowWidth int
WindowHeight int
LastCheckedVersion string
EnableSystemTray bool
CloseToSystemTray bool
}
type AlbumPageConfig struct {
@@ -87,6 +89,8 @@ func DefaultConfig(appVersionTag string) *Config {
WindowWidth: 1000,
WindowHeight: 800,
LastCheckedVersion: appVersionTag,
EnableSystemTray: true,
CloseToSystemTray: false,
},
AlbumPage: AlbumPageConfig{
TracklistColumns: []string{"Artist", "Time", "Plays", "Favorite"},