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 committed by Joe Stump
parent 81d039232c
commit c747618d9a
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -164,7 +164,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
}