add config file setting to disable keyring (related: #538)

This commit is contained in:
Drew Weymouth
2025-02-03 08:46:07 -03:00
parent 1ace22c59f
commit a8cae47f61
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ func StartupApp(appName, displayAppName, appVersion, appVersionTag, latestReleas
return nil, err
}
a.ServerManager = NewServerManager(appName, appVersion, a.Config, !portableMode /*use keyring*/)
a.ServerManager = NewServerManager(appName, appVersion, a.Config, !portableMode && a.Config.Application.EnablePasswordStorage)
a.PlaybackManager = NewPlaybackManager(a.bgrndCtx, a.ServerManager, a.LocalPlayer, &a.Config.Playback, &a.Config.Scrobbling, &a.Config.Transcoding, &a.Config.Application)
a.ImageManager = NewImageManager(a.bgrndCtx, a.ServerManager, cacheDir)
a.Config.Application.MaxImageCacheSizeMB = clamp(a.Config.Application.MaxImageCacheSizeMB, 1, 500)
+2
View File
@@ -47,6 +47,7 @@ type AppConfig struct {
AddToPlaylistSkipDuplicates bool
ShowTrackChangeNotification bool
EnableLrcLib bool
EnablePasswordStorage bool
SkipSSLVerify bool
EnqueueBatchSize int
Language string
@@ -180,6 +181,7 @@ func DefaultConfig(appVersionTag string) *Config {
SaveQueueToServer: false,
ShowTrackChangeNotification: false,
EnableLrcLib: true,
EnablePasswordStorage: true,
SkipSSLVerify: false,
EnqueueBatchSize: 100,
Language: "auto",