mirror of
https://github.com/whoeevee/EeveeSpotifyReborn.git
synced 2026-01-09 00:23:20 +01:00
fallback reasons
This commit is contained in:
@@ -7,6 +7,7 @@ extension UserDefaults {
|
||||
private static let lyricsSourceKey = "lyricsSource"
|
||||
private static let musixmatchTokenKey = "musixmatchToken"
|
||||
private static let geniusFallbackKey = "geniusFallback"
|
||||
private static let fallbackReasonsKey = "fallbackReasons"
|
||||
private static let darkPopUpsKey = "darkPopUps"
|
||||
private static let patchTypeKey = "patchType"
|
||||
private static let overwriteConfigurationKey = "overwriteConfiguration"
|
||||
@@ -42,6 +43,15 @@ extension UserDefaults {
|
||||
defaults.set(fallback, forKey: geniusFallbackKey)
|
||||
}
|
||||
}
|
||||
|
||||
static var fallbackReasons: Bool {
|
||||
get {
|
||||
defaults.object(forKey: fallbackReasonsKey) as? Bool ?? true
|
||||
}
|
||||
set (reasons) {
|
||||
defaults.set(reasons, forKey: fallbackReasonsKey)
|
||||
}
|
||||
}
|
||||
|
||||
static var darkPopUps: Bool {
|
||||
get {
|
||||
|
||||
Reference in New Issue
Block a user