Working Timer in Minimalistic View

This commit is contained in:
Hariharan Mudaliar 2025-11-30 01:41:45 +05:30
commit 8a76d9e86f
4 changed files with 135 additions and 0 deletions

View file

@ -401,6 +401,14 @@ class AppDelegate: NSObject, NSApplicationDelegate {
}
.store(in: &cancellables)
TimerManager.shared.$activeSource
.combineLatest(TimerManager.shared.$isTimerActive)
.receive(on: RunLoop.main)
.sink { [weak self] _ in
self?.debouncedUpdateWindowSize()
}
.store(in: &cancellables)
Defaults.publisher(.enableShortcuts, options: []).sink { change in
KeyboardShortcuts.isEnabled = change.newValue
}.store(in: &cancellables)