diff --git a/WakaTime/AppDelegate.swift b/WakaTime/AppDelegate.swift index bd4e0d6..5939b14 100644 --- a/WakaTime/AppDelegate.swift +++ b/WakaTime/AppDelegate.swift @@ -217,7 +217,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, StatusBarDelegate { } let time = Int(NSDate().timeIntervalSince1970) - guard lastTodayTime + 60 < time else { + guard lastTodayTime + 120 < time else { setText(lastTodayText) return } diff --git a/WakaTime/Watchers/Watcher.swift b/WakaTime/Watchers/Watcher.swift index fc01097..9211919 100644 --- a/WakaTime/Watchers/Watcher.swift +++ b/WakaTime/Watchers/Watcher.swift @@ -56,6 +56,7 @@ class Watcher: NSObject { // swiftlint:enable line_length if let oldApp = activeApp { unwatch(app: oldApp) } activeApp = app + self.statusBarDelegate?.fetchToday() if let bundleId = app.bundleIdentifier, MonitoringManager.isAppMonitored(for: bundleId) { watch(app: app) }