Set alert to nil when modal interacted with

pull/5164/head
Albert Dong 2025-01-16 20:57:41 -08:00
parent 860f1f635c
commit da5ac6aeeb
1 changed files with 1 additions and 0 deletions

View File

@ -449,6 +449,7 @@ class BaseTerminalController: NSWindowController,
alert.addButton(withTitle: "Cancel")
alert.alertStyle = .warning
alert.beginSheetModal(for: window, completionHandler: { response in
self.alert = nil
switch (response) {
case .alertFirstButtonReturn:
alert.window.orderOut(nil)