mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-05 12:57:50 +00:00
macos: red traffic light should be undoable
This commit is contained in:
@@ -681,7 +681,6 @@ class TerminalController: BaseTerminalController {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
tabGroup.windows.forEach { $0.close() }
|
||||
}
|
||||
|
||||
@@ -954,6 +953,13 @@ class TerminalController: BaseTerminalController {
|
||||
|
||||
//MARK: - NSWindowDelegate
|
||||
|
||||
override func windowShouldClose(_ sender: NSWindow) -> Bool {
|
||||
closeWindow(sender)
|
||||
|
||||
// We will always explicitly close the window using the above
|
||||
return false
|
||||
}
|
||||
|
||||
override func windowWillClose(_ notification: Notification) {
|
||||
super.windowWillClose(notification)
|
||||
self.relabelTabs()
|
||||
|
||||
Reference in New Issue
Block a user