@ -9,7 +9,7 @@ class MenubarHandler: NSObject {
return nextEvent
}
guard let menubarTitles = DataStore.shared().retrieve(key: CLMenubarFavorites) as? [Data] else {
guard let menubarTitles = DataStore.shared().menubarTimezones() else {
return nil
@ -44,6 +44,10 @@ class DataStore: NSObject {
return preferences
func menubarTimezones() -> [Data]? {
return DataStore.shared().retrieve(key: CLMenubarFavorites) as? [Data]
func updateDayPreference() {
shouldDisplayDayInMenubar = shouldDisplay(.dayInMenubar)
@ -221,6 +221,11 @@ class ParentPanelController: NSWindowController {
DataStore.shared().setTimezones(datas)
// Update appereance if in compact menubar mode
if let appDelegate = NSApplication.shared.delegate as? AppDelegate {
appDelegate.setupMenubarTimer()
func determineUpcomingViewVisibility() {