Close the crash reporter window after sending the crash log. Skip the Thanks sheet. Just close the window.

This commit is contained in:
Brent Simmons 2019-01-27 15:04:25 -08:00
parent cca508da6e
commit 37d67c3abb
1 changed files with 16 additions and 15 deletions

View File

@ -52,7 +52,8 @@ final class CrashReportWindowController: NSWindowController {
if !testing {
CrashReporter.sendCrashLogText(crashLogText)
}
showThanksSheet()
// showThanksSheet()
close()
}
@IBAction func dontSendCrashReport(_ sender: Any?) {
@ -60,17 +61,17 @@ final class CrashReportWindowController: NSWindowController {
}
}
private extension CrashReportWindowController {
func showThanksSheet() {
guard let window = window else {
return
}
let alert = NSAlert()
alert.alertStyle = .informational
alert.messageText = NSLocalizedString("Crash Report Sent", comment: "Crash Report Window")
alert.informativeText = NSLocalizedString("Thank you! You rock! This is a big help to us.", comment: "Crash Report Window")
alert.beginSheetModal(for: window)
}
}
//private extension CrashReportWindowController {
//
// func showThanksSheet() {
// guard let window = window else {
// return
// }
//
// let alert = NSAlert()
// alert.alertStyle = .informational
// alert.messageText = NSLocalizedString("Crash Report Sent", comment: "Crash Report Window")
// alert.informativeText = NSLocalizedString("Thank you! You rock! This is a big help to us.", comment: "Crash Report Window")
// alert.beginSheetModal(for: window)
// }
//}