mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-28 07:34:32 +00:00
Working Timer in Minimalistic View
This commit is contained in:
parent
9e8acaf9b9
commit
8a76d9e86f
4 changed files with 135 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue