macos: minor reordering

This commit is contained in:
Mitchell Hashimoto
2024-02-16 13:55:09 -08:00
parent 3bf18560bb
commit 9e4cd0b51c

View File

@ -259,15 +259,15 @@ class TerminalController: NSWindowController, NSWindowDelegate,
// titlebar tabs interferes with the window restore process unless window.tabbingMode
// is set to .preferred, so we set it, and switch back to automatic as soon as we can.
if (ghostty.config.macosTitlebarTabs) {
// Set the background color of the window
window.backgroundColor = NSColor(ghostty.config.backgroundColor)
window.tabbingMode = .preferred
window.titlebarTabs = true
syncAppearance()
DispatchQueue.main.async {
window.tabbingMode = .automatic
}
// Set the background color of the window
window.backgroundColor = NSColor(ghostty.config.backgroundColor)
// Set a custom background on the titlebar - this is required for when
// titlebar tabs are used in conjunction with a transparent background.