expose more config file settings in the UI

This commit is contained in:
Drew Weymouth
2025-02-21 16:31:04 -08:00
parent 90f85d26a6
commit 95ef3eae38
4 changed files with 104 additions and 54 deletions
+4 -2
View File
@@ -127,8 +127,10 @@ func StartupApp(appName, displayAppName, appVersion, appVersionTag, latestReleas
log.Printf("Using config dir: %s", confDir)
log.Printf("Using cache dir: %s", cacheDir)
a.UpdateChecker = NewUpdateChecker(appVersionTag, latestReleaseURL, &a.Config.Application.LastCheckedVersion)
a.UpdateChecker.Start(a.bgrndCtx, 24*time.Hour)
if a.Config.Application.EnableAutoUpdateChecker {
a.UpdateChecker = NewUpdateChecker(appVersionTag, latestReleaseURL, &a.Config.Application.LastCheckedVersion)
a.UpdateChecker.Start(a.bgrndCtx, 24*time.Hour)
}
if err := a.initMPV(); err != nil {
return nil, err
+2
View File
@@ -53,6 +53,7 @@ type AppConfig struct {
EnqueueBatchSize int
Language string
DisableDPIDetection bool
EnableAutoUpdateChecker bool
// Experimental - may be removed in future
FontNormalTTF string
@@ -189,6 +190,7 @@ func DefaultConfig(appVersionTag string) *Config {
SkipSSLVerify: false,
EnqueueBatchSize: 100,
Language: "auto",
EnableAutoUpdateChecker: true,
},
AlbumPage: AlbumPageConfig{
TracklistColumns: []string{"Artist", "Time", "Plays", "Favorite", "Rating"},