mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 09:16:11 +03:00
Merge pull request #168 from mitchellh/mrn/quit-dialog-return-simple
macOS: change quit dialog to handle return by removing role
This commit is contained in:
@ -38,7 +38,7 @@ struct ContentView: View {
|
|||||||
.confirmationDialog(
|
.confirmationDialog(
|
||||||
"Quit Ghostty?",
|
"Quit Ghostty?",
|
||||||
isPresented: confirmQuitting) {
|
isPresented: confirmQuitting) {
|
||||||
Button("Close Ghostty", role: .destructive) {
|
Button("Close Ghostty") {
|
||||||
NSApplication.shared.reply(toApplicationShouldTerminate: true)
|
NSApplication.shared.reply(toApplicationShouldTerminate: true)
|
||||||
}
|
}
|
||||||
.keyboardShortcut(.defaultAction)
|
.keyboardShortcut(.defaultAction)
|
||||||
|
Reference in New Issue
Block a user