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:
@ -169,6 +169,16 @@ class TerminalWindow: NSWindow {
|
||||
}
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
// This is true if we should apply styles to the titlebar or tab bar.
|
||||
|
Reference in New Issue
Block a user