mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-05-04 23:38:38 +03:00

I think this is a left-over from the refactor that moved this field to the `PrimaryWindowManager`.
15 lines
530 B
Swift
15 lines
530 B
Swift
import Cocoa
|
|
|
|
class PrimaryWindowController: NSWindowController {
|
|
// This is used to programmatically control tabs.
|
|
weak var windowManager: PrimaryWindowManager?
|
|
|
|
// This is required for the "+" button to show up in the tab bar to add a
|
|
// new tab.
|
|
override func newWindowForTab(_ sender: Any?) {
|
|
guard let window = self.window else { preconditionFailure("Expected window to be loaded") }
|
|
guard let manager = self.windowManager else { return }
|
|
manager.addNewTab(to: window)
|
|
}
|
|
}
|