From d0ee5ea3fa2ac583d55dda93b394fd56f6ab31f7 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Mon, 27 Sep 2021 18:47:32 +0300 Subject: [PATCH] - changed the message when encountering a critical error - it now looks better --- CHANGELOG.md | 1 + FlatCAM.py | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ae77a59..db129ead 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ CHANGELOG for FlatCAM beta - in Gerber Object trying to solve the issue with too little details on plotting geometry with inch units - working to differentiate between temporary units change and permanent units change +- changed the message when encountering a critical error - it now looks better 26.09.2021 diff --git a/FlatCAM.py b/FlatCAM.py index 07d62145..c6523219 100644 --- a/FlatCAM.py +++ b/FlatCAM.py @@ -4,7 +4,7 @@ import traceback from datetime import datetime from PyQt6 import QtWidgets -from PyQt6.QtCore import QSettings, QTimer, Qt +from PyQt6.QtCore import QSettings, QTimer from app_Main import App from appGUI import VisPyPatches @@ -124,12 +124,12 @@ if __name__ == '__main__': try: msgbox = QtWidgets.QMessageBox() displayed_msg = "The application encountered a critical error and it will close.\n"\ - "Please report this error to the developers.\n" \ - "**************************************************************\n\n" - displayed_msg += msg - msgbox.setInformativeText(displayed_msg) + "Please report this error to the developers." + msgbox.setText(displayed_msg) + msgbox.setDetailedText(msg) msgbox.setWindowTitle("Critical Error") + # msgbox.setWindowIcon() msgbox.setIcon(QtWidgets.QMessageBox.Icon.Critical) bt_yes = msgbox.addButton("Quit", QtWidgets.QMessageBox.ButtonRole.YesRole)