mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 09:16:11 +03:00
Merge pull request #1660 from mitchellh/macos-app
macos: wrap syncAppearance in async call
This commit is contained in:
@ -374,8 +374,10 @@ class AppDelegate: NSObject,
|
|||||||
syncMenuShortcuts()
|
syncMenuShortcuts()
|
||||||
terminalManager.relabelAllTabs()
|
terminalManager.relabelAllTabs()
|
||||||
|
|
||||||
// Config could change window appearance
|
// Config could change window appearance. We wrap this in an async queue because when
|
||||||
syncAppearance()
|
// this is called as part of application launch it can deadlock with an internal
|
||||||
|
// AppKit mutex on the appearance.
|
||||||
|
DispatchQueue.main.async { self.syncAppearance() }
|
||||||
|
|
||||||
// Update all of our windows
|
// Update all of our windows
|
||||||
terminalManager.windows.forEach { window in
|
terminalManager.windows.forEach { window in
|
||||||
|
Reference in New Issue
Block a user