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)