mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
macos: minor reordering
This commit is contained in:
@ -259,15 +259,15 @@ class TerminalController: NSWindowController, NSWindowDelegate,
|
|||||||
// titlebar tabs interferes with the window restore process unless window.tabbingMode
|
// 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.
|
// is set to .preferred, so we set it, and switch back to automatic as soon as we can.
|
||||||
if (ghostty.config.macosTitlebarTabs) {
|
if (ghostty.config.macosTitlebarTabs) {
|
||||||
// Set the background color of the window
|
|
||||||
window.backgroundColor = NSColor(ghostty.config.backgroundColor)
|
|
||||||
|
|
||||||
window.tabbingMode = .preferred
|
window.tabbingMode = .preferred
|
||||||
window.titlebarTabs = true
|
window.titlebarTabs = true
|
||||||
syncAppearance()
|
syncAppearance()
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
window.tabbingMode = .automatic
|
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
|
// Set a custom background on the titlebar - this is required for when
|
||||||
// titlebar tabs are used in conjunction with a transparent background.
|
// titlebar tabs are used in conjunction with a transparent background.
|
||||||
|
Reference in New Issue
Block a user