- changed the message when encountering a critical error - it now looks better
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
10
FlatCAM.py
10
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)
|
||||
|
||||
Reference in New Issue
Block a user