macos: red traffic light should be undoable

pull/7535/head
Mitchell Hashimoto 2025-06-08 07:00:49 -07:00
parent 6f6d493763
commit ec043e1386
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 7 additions and 1 deletions

View File

@ -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()