When externals services are disabled, only disable UILoginBackgroundURL if it is not set by the user

This commit is contained in:
Deluan 2021-11-01 09:11:32 -04:00
parent e7202339af
commit b2acec0a09
1 changed files with 3 additions and 1 deletions

View File

@ -153,7 +153,9 @@ func disableExternalServices() {
log.Info("All external integrations are DISABLED!")
Server.LastFM.Enabled = false
Server.Spotify.ID = ""
Server.UILoginBackgroundURL = consts.DefaultUILoginBackgroundURLOffline
if Server.UILoginBackgroundURL == consts.DefaultUILoginBackgroundURL {
Server.UILoginBackgroundURL = consts.DefaultUILoginBackgroundURLOffline
}
Server.DevListenBrainzEnabled = false
}