mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-18 13:30:29 +00:00
macos: undo close all windows
This commit is contained in:
@@ -710,7 +710,11 @@ class TerminalController: BaseTerminalController {
|
||||
}
|
||||
|
||||
static private func closeAllWindowsImmediately() {
|
||||
all.forEach { $0.close() }
|
||||
let undoManager = (NSApp.delegate as? AppDelegate)?.undoManager
|
||||
undoManager?.beginUndoGrouping()
|
||||
all.forEach { $0.closeWindowImmediately() }
|
||||
undoManager?.setActionName("Close All Windows")
|
||||
undoManager?.endUndoGrouping()
|
||||
}
|
||||
|
||||
// MARK: Undo/Redo
|
||||
|
||||
Reference in New Issue
Block a user