Browse Source

Update API method!

pull/101/head
Abhishek 4 years ago
parent
commit
0cbbd2e4be
  1. 2
      Clocker/Preferences/Appearance/AppearanceViewController.swift
  2. 2
      Clocker/Preferences/Calendar/CalendarViewController.swift
  3. 2
      Clocker/Preferences/General/PreferencesDataSource.swift
  4. 2
      Clocker/Preferences/General/PreferencesViewController.swift
  5. 4
      Clocker/Preferences/Menu Bar/StatusItemHandler.swift

2
Clocker/Preferences/Appearance/AppearanceViewController.swift

@ -325,7 +325,7 @@ class AppearanceViewController: ParentViewController {
if DataStore.shared().shouldDisplay(.menubarCompactMode) {
statusItem.setupStatusItem()
} else {
statusItem.performTimerWork()
statusItem.refresh()
}
}

2
Clocker/Preferences/Calendar/CalendarViewController.swift

@ -187,7 +187,7 @@ class CalendarViewController: ParentViewController {
return
}
statusItem.performTimerWork()
statusItem.refresh()
}
@IBOutlet var headerLabel: NSTextField!

2
Clocker/Preferences/General/PreferencesDataSource.swift

@ -200,6 +200,6 @@ extension PreferencesDataSource: NSTableViewDataSource {
return
}
statusItem.performTimerWork()
statusItem.refresh()
}
}

2
Clocker/Preferences/General/PreferencesViewController.swift

@ -828,7 +828,7 @@ extension PreferencesViewController {
return
}
statusItem.performTimerWork()
statusItem.refresh()
}
private func updateStatusBarAppearance() {

4
Clocker/Preferences/Menu Bar/StatusItemHandler.swift

@ -186,7 +186,7 @@ class StatusItemHandler: NSObject {
block: { [weak self] _ in
if let strongSelf = self {
strongSelf.performTimerWork()
strongSelf.refresh()
}
})
@ -249,7 +249,7 @@ class StatusItemHandler: NSObject {
parentView?.updateTime()
}
func performTimerWork() {
func refresh() {
if currentState == .compactText {
updateCompactMenubar()
updateMenubar()

Loading…
Cancel
Save