From 87234740bdad3c4b450762c60a80f315d8e5313d Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Mon, 29 May 2023 10:02:54 -0600 Subject: [PATCH] =?UTF-8?q?logging=5Fhandler.py:=20Don=E2=80=99t=20auto=20?= =?UTF-8?q?dismiss?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/logging_handler.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/resources/logging_handler.py b/resources/logging_handler.py index 8a503350c..1f2a931f1 100644 --- a/resources/logging_handler.py +++ b/resources/logging_handler.py @@ -221,11 +221,9 @@ class InitializeLoggingSupport: error_msg += f"\n\n{traceback.extract_tb(tb)[-1]}" error_msg += "\n\nSend crash report to Dortania?" - # applescript.AppleScript(f'display dialog "{error_msg}" with title "OpenCore Legacy Patcher ({self.constants.patcher_version})" buttons {{"OK"}} default button "OK" with icon caution giving up after 30').run() - # Ask user if they want to send crash report try: - result = applescript.AppleScript(f'display dialog "{error_msg}" with title "OpenCore Legacy Patcher ({self.constants.patcher_version})" buttons {{"Yes", "No"}} default button "Yes" with icon caution giving up after 30').run() + result = applescript.AppleScript(f'display dialog "{error_msg}" with title "OpenCore Legacy Patcher ({self.constants.patcher_version})" buttons {{"Yes", "No"}} default button "Yes" with icon caution').run() except Exception as e: logging.error(f"Failed to display crash report dialog: {e}") return