From 37d67c3abb272ef1f16b86f43887b5a023ffe0f5 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sun, 27 Jan 2019 15:04:25 -0800 Subject: [PATCH] Close the crash reporter window after sending the crash log. Skip the Thanks sheet. Just close the window. --- .../CrashReportWindowController.swift | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/NetNewsWire/CrashReporter/CrashReportWindowController.swift b/NetNewsWire/CrashReporter/CrashReportWindowController.swift index afff0d941..ba156c9d0 100644 --- a/NetNewsWire/CrashReporter/CrashReportWindowController.swift +++ b/NetNewsWire/CrashReporter/CrashReportWindowController.swift @@ -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) +// } +//}