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) { if DataStore.shared().shouldDisplay(.menubarCompactMode) {
statusItem.setupStatusItem() statusItem.setupStatusItem()
} else { } else {
statusItem.performTimerWork() statusItem.refresh()
} }
} }

2
Clocker/Preferences/Calendar/CalendarViewController.swift

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

2
Clocker/Preferences/General/PreferencesDataSource.swift

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

2
Clocker/Preferences/General/PreferencesViewController.swift

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

4
Clocker/Preferences/Menu Bar/StatusItemHandler.swift

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

Loading…
Cancel
Save