mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-14 11:35:48 +00:00
macos: fix glass tinting when theme changes
This commit is contained in:
@@ -87,7 +87,8 @@ class TerminalViewContainer<ViewModel: TerminalViewModel>: NSView {
|
||||
let newValue = DerivedConfig(config: config)
|
||||
guard newValue != derivedConfig else { return }
|
||||
derivedConfig = newValue
|
||||
DispatchQueue.main.async(execute: updateGlassEffectIfNeeded)
|
||||
// Add some delay to wait TerminalWindow to update first
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.05, execute: updateGlassEffectIfNeeded)
|
||||
}
|
||||
|
||||
@objc private func windowDidBecomeKey(_ notification: Notification) {
|
||||
|
||||
Reference in New Issue
Block a user