add config file setting to disable keyring (related: #538)
This commit is contained in:
+1
-1
@@ -136,7 +136,7 @@ func StartupApp(appName, displayAppName, appVersion, appVersionTag, latestReleas
|
|||||||
return nil, err
|
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.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.ImageManager = NewImageManager(a.bgrndCtx, a.ServerManager, cacheDir)
|
||||||
a.Config.Application.MaxImageCacheSizeMB = clamp(a.Config.Application.MaxImageCacheSizeMB, 1, 500)
|
a.Config.Application.MaxImageCacheSizeMB = clamp(a.Config.Application.MaxImageCacheSizeMB, 1, 500)
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ type AppConfig struct {
|
|||||||
AddToPlaylistSkipDuplicates bool
|
AddToPlaylistSkipDuplicates bool
|
||||||
ShowTrackChangeNotification bool
|
ShowTrackChangeNotification bool
|
||||||
EnableLrcLib bool
|
EnableLrcLib bool
|
||||||
|
EnablePasswordStorage bool
|
||||||
SkipSSLVerify bool
|
SkipSSLVerify bool
|
||||||
EnqueueBatchSize int
|
EnqueueBatchSize int
|
||||||
Language string
|
Language string
|
||||||
@@ -180,6 +181,7 @@ func DefaultConfig(appVersionTag string) *Config {
|
|||||||
SaveQueueToServer: false,
|
SaveQueueToServer: false,
|
||||||
ShowTrackChangeNotification: false,
|
ShowTrackChangeNotification: false,
|
||||||
EnableLrcLib: true,
|
EnableLrcLib: true,
|
||||||
|
EnablePasswordStorage: true,
|
||||||
SkipSSLVerify: false,
|
SkipSSLVerify: false,
|
||||||
EnqueueBatchSize: 100,
|
EnqueueBatchSize: 100,
|
||||||
Language: "auto",
|
Language: "auto",
|
||||||
|
|||||||
Reference in New Issue
Block a user