mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-19 14:00:29 +00:00
macos: don't restore tab bar with non-native fs
This commit is contained in:
@@ -268,6 +268,12 @@ class NonNativeFullscreen: FullscreenBase, FullscreenStyle {
|
||||
// Removing the "titled" style also derefs all our accessory view controllers
|
||||
// so we need to restore those.
|
||||
for c in savedState.titlebarAccessoryViewControllers {
|
||||
// Restoring the tab bar causes all sorts of problems. Its best to just ignore it,
|
||||
// even though this is kind of a hack.
|
||||
if let window = window as? TerminalWindow, window.isTabBar(c) {
|
||||
continue
|
||||
}
|
||||
|
||||
if window.titlebarAccessoryViewControllers.firstIndex(of: c) == nil {
|
||||
window.addTitlebarAccessoryViewController(c)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user