feat: Add option to disable showing the version and option to prevent checking for updates

This commit is contained in:
Divyang Joshi 2023-04-28 19:28:23 -04:00
parent 4db26f9f79
commit d73aa1782e
No known key found for this signature in database
GPG key ID: 4155AEF0D685BA17
16 changed files with 91 additions and 8 deletions

View file

@ -54,6 +54,10 @@ class ServerSettings {
this.timeFormat = 'HH:mm'
this.language = 'en-us'
// Version
this.versionUpdateCheck = true
this.showVersion = true
this.logLevel = Logger.logLevel
this.version = null
@ -95,6 +99,8 @@ class ServerSettings {
this.sortingIgnorePrefix = !!settings.sortingIgnorePrefix
this.sortingPrefixes = settings.sortingPrefixes || ['the']
this.chromecastEnabled = !!settings.chromecastEnabled
this.versionUpdateCheck = !!settings.versionUpdateCheck
this.showVersion = !!settings.showVersion
this.enableEReader = !!settings.enableEReader
this.dateFormat = settings.dateFormat || 'MM/dd/yyyy'
this.timeFormat = settings.timeFormat || 'HH:mm'
@ -146,6 +152,8 @@ class ServerSettings {
sortingIgnorePrefix: this.sortingIgnorePrefix,
sortingPrefixes: [...this.sortingPrefixes],
chromecastEnabled: this.chromecastEnabled,
versionUpdateCheck: this.versionUpdateCheck,
showVersion: this.showVersion,
enableEReader: this.enableEReader,
dateFormat: this.dateFormat,
timeFormat: this.timeFormat,