Merge pull request #1660 from mitchellh/macos-app

macos: wrap syncAppearance in async call
This commit is contained in:
Mitchell Hashimoto
2024-04-05 10:05:32 -07:00
committed by GitHub

View File

@ -374,8 +374,10 @@ class AppDelegate: NSObject,
syncMenuShortcuts()
terminalManager.relabelAllTabs()
// Config could change window appearance
syncAppearance()
// Config could change window appearance. We wrap this in an async queue because when
// 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
terminalManager.windows.forEach { window in