macos: explicitly update TerminalViewContainer when it's needed

This commit is contained in:
Lukas
2026-02-26 11:47:51 +01:00
parent 4e493a9201
commit 9032096fc7
3 changed files with 19 additions and 42 deletions

View File

@@ -159,6 +159,8 @@ class QuickTerminalController: BaseTerminalController {
// applies if we can be seen.
guard visible else { return }
window?.terminalViewContainer?.updateGlassTintOverlay(isKeyWindow: true)
// Re-hide the dock if we were hiding it before.
hiddenDock?.hide()
}
@@ -172,6 +174,8 @@ class QuickTerminalController: BaseTerminalController {
// ensures we don't run logic twice.
guard visible else { return }
window?.terminalViewContainer?.updateGlassTintOverlay(isKeyWindow: false)
// We don't animate out if there is a modal sheet being shown currently.
// This lets us show alerts without causing the window to disappear.
guard window?.attachedSheet == nil else { return }
@@ -704,6 +708,8 @@ class QuickTerminalController: BaseTerminalController {
self.derivedConfig = DerivedConfig(config)
syncAppearance()
window?.terminalViewContainer?.ghosttyConfigDidChange(config, preferredBackgroundColor: nil)
}
@objc private func onNewTab(notification: SwiftUI.Notification) {