mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
Set alert to nil when modal interacted with
This commit is contained in:
@ -449,6 +449,7 @@ class BaseTerminalController: NSWindowController,
|
|||||||
alert.addButton(withTitle: "Cancel")
|
alert.addButton(withTitle: "Cancel")
|
||||||
alert.alertStyle = .warning
|
alert.alertStyle = .warning
|
||||||
alert.beginSheetModal(for: window, completionHandler: { response in
|
alert.beginSheetModal(for: window, completionHandler: { response in
|
||||||
|
self.alert = nil
|
||||||
switch (response) {
|
switch (response) {
|
||||||
case .alertFirstButtonReturn:
|
case .alertFirstButtonReturn:
|
||||||
alert.window.orderOut(nil)
|
alert.window.orderOut(nil)
|
||||||
|
Reference in New Issue
Block a user