expose more config file settings in the UI
This commit is contained in:
+4
-2
@@ -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
|
||||
|
||||
@@ -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"},
|
||||
|
||||
Reference in New Issue
Block a user