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:
Mitchell Hashimoto
2023-07-01 09:04:02 -07:00
committed by GitHub

View File

@ -38,7 +38,7 @@ struct ContentView: View {
.confirmationDialog(
"Quit Ghostty?",
isPresented: confirmQuitting) {
Button("Close Ghostty", role: .destructive) {
Button("Close Ghostty") {
NSApplication.shared.reply(toApplicationShouldTerminate: true)
}
.keyboardShortcut(.defaultAction)