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)