Browse Source

Cleanup Compact mode alert setup.

pull/113/head
Abhishek Banthia 3 years ago
parent
commit
10a1444843
  1. 13
      Clocker/Overall App/AppDefaults.swift

13
Clocker/Overall App/AppDefaults.swift

@ -48,19 +48,6 @@ class AppDefaults {
userDefaults.set(true, forKey: CLDefaultMenubarMode)
}
if userDefaults.bool(forKey: CLSwitchToCompactModeAlert) == false {
userDefaults.set(true, forKey: CLSwitchToCompactModeAlert)
if let menubarFavourites = DataStore.shared().menubarTimezones(), menubarFavourites.count > 1 {
// If the user is already using the compact mode, abort.
if DataStore.shared().shouldDisplay(.menubarCompactMode) {
return
}
showCompactModeAlert()
}
}
}
private class func setDefaultTheme() {

Loading…
Cancel
Save