mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-24 23:29:00 +08:00
Merge branch 'master' of ssh://github.com/Ultimaker/Cura
This commit is contained in:
commit
f7709c11bc
@ -25,6 +25,8 @@ from UM.View.GL.OpenGL import OpenGL
|
|||||||
from UM.i18n import i18nCatalog
|
from UM.i18n import i18nCatalog
|
||||||
from UM.Resources import Resources
|
from UM.Resources import Resources
|
||||||
|
|
||||||
|
from cura import ApplicationMetadata
|
||||||
|
|
||||||
catalog = i18nCatalog("cura")
|
catalog = i18nCatalog("cura")
|
||||||
|
|
||||||
MYPY = False
|
MYPY = False
|
||||||
@ -181,6 +183,7 @@ class CrashHandler:
|
|||||||
self.cura_version = catalog.i18nc("@label unknown version of Cura", "Unknown")
|
self.cura_version = catalog.i18nc("@label unknown version of Cura", "Unknown")
|
||||||
|
|
||||||
crash_info = "<b>" + catalog.i18nc("@label Cura version number", "Cura version") + ":</b> " + str(self.cura_version) + "<br/>"
|
crash_info = "<b>" + catalog.i18nc("@label Cura version number", "Cura version") + ":</b> " + str(self.cura_version) + "<br/>"
|
||||||
|
crash_info += "<b>" + catalog.i18nc("@label Cura build type", "Cura build type") + ":</b> " + str(ApplicationMetadata.CuraBuildType) + "<br/>"
|
||||||
crash_info += "<b>" + catalog.i18nc("@label Type of platform", "Platform") + ":</b> " + str(platform.platform()) + "<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", "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", "PyQt version") + ":</b> " + str(PYQT_VERSION_STR) + "<br/>"
|
||||||
@ -191,6 +194,7 @@ class CrashHandler:
|
|||||||
group.setLayout(layout)
|
group.setLayout(layout)
|
||||||
|
|
||||||
self.data["cura_version"] = self.cura_version
|
self.data["cura_version"] = self.cura_version
|
||||||
|
self.data["cura_build_type"] = ApplicationMetadata.CuraBuildType
|
||||||
self.data["os"] = {"type": platform.system(), "version": platform.version()}
|
self.data["os"] = {"type": platform.system(), "version": platform.version()}
|
||||||
self.data["qt_version"] = QT_VERSION_STR
|
self.data["qt_version"] = QT_VERSION_STR
|
||||||
self.data["pyqt_version"] = PYQT_VERSION_STR
|
self.data["pyqt_version"] = PYQT_VERSION_STR
|
||||||
|
@ -18,6 +18,8 @@ from UM.Logger import Logger
|
|||||||
from UM.PluginRegistry import PluginRegistry
|
from UM.PluginRegistry import PluginRegistry
|
||||||
from UM.Qt.Duration import DurationFormat
|
from UM.Qt.Duration import DurationFormat
|
||||||
|
|
||||||
|
from cura import ApplicationMetadata
|
||||||
|
|
||||||
from .SliceInfoJob import SliceInfoJob
|
from .SliceInfoJob import SliceInfoJob
|
||||||
|
|
||||||
|
|
||||||
@ -119,6 +121,7 @@ class SliceInfo(QObject, Extension):
|
|||||||
data["time_stamp"] = time.time()
|
data["time_stamp"] = time.time()
|
||||||
data["schema_version"] = 0
|
data["schema_version"] = 0
|
||||||
data["cura_version"] = application.getVersion()
|
data["cura_version"] = application.getVersion()
|
||||||
|
data["cura_build_type"] = ApplicationMetadata.CuraBuildType
|
||||||
|
|
||||||
active_mode = Application.getInstance().getPreferences().getValue("cura/active_mode")
|
active_mode = Application.getInstance().getPreferences().getValue("cura/active_mode")
|
||||||
if active_mode == 0:
|
if active_mode == 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user