mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-05-02 00:40:14 +00:00
Confirmed in the system log: while the menubar icon sits idle in the background, macOS flips _kLSApplicationWouldBeTerminatedByTALKey to 1, which is the Automatic Termination and App Nap subsystem declaring the app a suspend candidate. Once that happens the 15s refresh Task's sleep stretches arbitrarily, so the status bar label freezes until the user clicks the icon (which triggers NSApp.activate and wakes everything up). Hold a ProcessInfo.beginActivity handle for the life of the app with .userInitiated + .automaticTerminationDisabled + .suddenTerminationDisabled so macOS leaves the app alone. Released implicitly when the app exits. |
||
|---|---|---|
| .. | ||
| Data | ||
| Security | ||
| Theme | ||
| Views | ||
| AppStore.swift | ||
| CodeBurnApp.swift | ||
| CurrencyState.swift | ||