- changed the message when encountering a critical error - it now looks better

This commit is contained in:
Marius Stanciu
2021-09-27 18:47:32 +03:00
committed by Marius
parent 3fc0ab826f
commit d0ee5ea3fa
2 changed files with 6 additions and 5 deletions

View File

@@ -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

View File

@@ -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)