Set alert to nil when modal interacted with

This commit is contained in:
Albert Dong
2025-01-16 20:57:41 -08:00
parent 860f1f635c
commit da5ac6aeeb

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)