Fix #193: exit and reactivate existing instance if another instance running

This commit is contained in:
Drew Weymouth
2023-06-17 17:00:47 -07:00
parent 0906d118b4
commit 20e4d8c5f2
5 changed files with 57 additions and 6 deletions
+2
View File
@@ -28,6 +28,7 @@ type AppConfig struct {
EnableSystemTray bool
CloseToSystemTray bool
StartupPage string
AllowMultiInstance bool
// Experimental - may be removed in future
FontNormalTTF string
@@ -119,6 +120,7 @@ func DefaultConfig(appVersionTag string) *Config {
EnableSystemTray: true,
CloseToSystemTray: false,
StartupPage: "Albums",
AllowMultiInstance: false,
},
AlbumPage: AlbumPageConfig{
TracklistColumns: []string{"Artist", "Time", "Plays", "Favorite", "Rating"},