Set alert to nil when modal interacted with
parent
860f1f635c
commit
da5ac6aeeb
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue