mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
Merge pull request #1915 from ghostty-org/macos-merge
macos: relabel tabs when mergeAllWindows is called
This commit is contained in:
@ -168,6 +168,16 @@ class TerminalWindow: NSWindow {
|
|||||||
hideTitleBarSeparators()
|
hideTitleBarSeparators()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override func mergeAllWindows(_ sender: Any?) {
|
||||||
|
super.mergeAllWindows(sender)
|
||||||
|
|
||||||
|
if let controller = self.windowController as? TerminalController {
|
||||||
|
// It takes an event loop cycle to merge all the windows so we set a
|
||||||
|
// short timer to relabel the tabs (issue #1902)
|
||||||
|
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) { controller.relabelTabs() }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// MARK: - Tab Bar Styling
|
// MARK: - Tab Bar Styling
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user