-
Notifications
You must be signed in to change notification settings - Fork 572
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: quick terminal CPU spikes (#4055)
# Description The following code is causing an infinite loop that causes a CPU spikes until the quick terminal is displayed: https://github.com/ghostty-org/ghostty/blob/87bd0bb744d6a1c45022aa39f21219d0b6ff3261/macos/Sources/Features/QuickTerminal/QuickTerminalController.swift#L314-L317 ## Reproduce steps 1. Open Ghostty. 2. Open the Quick Terminal. 3. Close the Quick Terminal. 4. Reload the configuration (Ghostty > Reload Configuration or `shift+cmd+,`). 5. Observe CPU spike. ## Fix Now, `syncAppearance` doesn't postpone the process until it can be consumed, and the appearance is synchronized once the animation is done and the quick terminal is visible. Fixes #3998
- Loading branch information
Showing
1 changed file
with
18 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters