diff options
author | Jaime van Kessel <nallath@gmail.com> | 2019-12-16 13:23:12 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2019-12-16 13:23:12 +0300 |
commit | c15599f1c4e082c6fa46bd9b8143659e6cd684ef (patch) | |
tree | 6b1e874ceb70676129915b20cf730bed76f97831 /cura/CrashHandler.py | |
parent | ffccca257f98c1f8aa2c9b6f02395b851c4db1d0 (diff) |
Add some extra info to crash handler screen
Diffstat (limited to 'cura/CrashHandler.py')
-rw-r--r-- | cura/CrashHandler.py | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/cura/CrashHandler.py b/cura/CrashHandler.py index 27b486d99a..aa53ca0cc5 100644 --- a/cura/CrashHandler.py +++ b/cura/CrashHandler.py @@ -182,23 +182,27 @@ class CrashHandler: self.cura_version = catalog.i18nc("@label unknown version of Cura", "Unknown") self.cura_locale = "??_??" + self.data["cura_version"] = self.cura_version + self.data["os"] = {"type": platform.system(), "version": platform.version()} + self.data["qt_version"] = QT_VERSION_STR + self.data["pyqt_version"] = PYQT_VERSION_STR + self.data["locale_os"] = locale.getlocale(locale.LC_MESSAGES)[0] if hasattr(locale, "LC_MESSAGES") else \ + locale.getdefaultlocale()[0] + self.data["locale_cura"] = self.cura_locale + crash_info = "<b>" + catalog.i18nc("@label Cura version number", "Cura version") + ":</b> " + str(self.cura_version) + "<br/>" + crash_info += "<b>" + catalog.i18nc("@label", "Cura language") + ":</b> " + str(self.cura_locale) + "<br/>" + crash_info += "<b>" + catalog.i18nc("@label", "OS language") + ":</b> " + str(self.data["locale_os"]) + "<br/>" crash_info += "<b>" + catalog.i18nc("@label Type of platform", "Platform") + ":</b> " + str(platform.platform()) + "<br/>" crash_info += "<b>" + catalog.i18nc("@label", "Qt version") + ":</b> " + str(QT_VERSION_STR) + "<br/>" crash_info += "<b>" + catalog.i18nc("@label", "PyQt version") + ":</b> " + str(PYQT_VERSION_STR) + "<br/>" crash_info += "<b>" + catalog.i18nc("@label OpenGL version", "OpenGL") + ":</b> " + str(self._getOpenGLInfo()) + "<br/>" + label.setText(crash_info) layout.addWidget(label) group.setLayout(layout) - self.data["cura_version"] = self.cura_version - self.data["os"] = {"type": platform.system(), "version": platform.version()} - self.data["qt_version"] = QT_VERSION_STR - self.data["pyqt_version"] = PYQT_VERSION_STR - self.data["locale_os"] = locale.getlocale(locale.LC_MESSAGES)[0] if hasattr(locale, "LC_MESSAGES") else locale.getdefaultlocale()[0] - self.data["locale_cura"] = self.cura_locale - with configure_scope() as scope: scope.set_tag("qt_version", QT_VERSION_STR) scope.set_tag("pyqt_version", PYQT_VERSION_STR) |