mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 00:25:56 +08:00
Merge branch 'master' of github.com:Ultimaker/Cura
This commit is contained in:
commit
846d608a03
@ -1,4 +1,4 @@
|
|||||||
# Copyright (c) 2015 Ultimaker B.V.
|
# Copyright (c) 2018 Ultimaker B.V.
|
||||||
# Cura is released under the terms of the LGPLv3 or higher.
|
# Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
from UM.i18n import i18nCatalog
|
from UM.i18n import i18nCatalog
|
||||||
@ -29,6 +29,7 @@ class ChangeLog(Extension, QObject,):
|
|||||||
self._change_logs = None
|
self._change_logs = None
|
||||||
Application.getInstance().engineCreatedSignal.connect(self._onEngineCreated)
|
Application.getInstance().engineCreatedSignal.connect(self._onEngineCreated)
|
||||||
Application.getInstance().getPreferences().addPreference("general/latest_version_changelog_shown", "2.0.0") #First version of CURA with uranium
|
Application.getInstance().getPreferences().addPreference("general/latest_version_changelog_shown", "2.0.0") #First version of CURA with uranium
|
||||||
|
self.setMenuName(catalog.i18nc("@item:inmenu", "Changelog"))
|
||||||
self.addMenuItem(catalog.i18nc("@item:inmenu", "Show Changelog"), self.showChangelog)
|
self.addMenuItem(catalog.i18nc("@item:inmenu", "Show Changelog"), self.showChangelog)
|
||||||
|
|
||||||
def getChangeLogs(self):
|
def getChangeLogs(self):
|
||||||
|
@ -32,7 +32,8 @@ class PostProcessingPlugin(QObject, Extension):
|
|||||||
def __init__(self, parent = None) -> None:
|
def __init__(self, parent = None) -> None:
|
||||||
QObject.__init__(self, parent)
|
QObject.__init__(self, parent)
|
||||||
Extension.__init__(self)
|
Extension.__init__(self)
|
||||||
self.addMenuItem(i18n_catalog.i18n("Modify G-Code"), self.showPopup)
|
self.setMenuName(i18n_catalog.i18nc("@item:inmenu", "Post Processing"))
|
||||||
|
self.addMenuItem(i18n_catalog.i18nc("@item:inmenu", "Modify G-Code"), self.showPopup)
|
||||||
self._view = None
|
self._view = None
|
||||||
|
|
||||||
# Loaded scripts are all scripts that can be used
|
# Loaded scripts are all scripts that can be used
|
||||||
|
@ -511,7 +511,10 @@ class Toolbox(QObject, Extension):
|
|||||||
# version, we also need to check if the current one has a lower SDK version. If so, this package should also
|
# version, we also need to check if the current one has a lower SDK version. If so, this package should also
|
||||||
# be upgradable.
|
# be upgradable.
|
||||||
elif remote_version == local_version:
|
elif remote_version == local_version:
|
||||||
can_upgrade = local_package.get("sdk_version", 0) < remote_package.get("sdk_version", 0)
|
# First read sdk_version_semver. If that doesn't exist, read just sdk_version (old version system).
|
||||||
|
remote_sdk_version = Version(remote_package.get("sdk_version_semver", remote_package.get("sdk_version", 0)))
|
||||||
|
local_sdk_version = Version(local_package.get("sdk_version_semver", local_package.get("sdk_version", 0)))
|
||||||
|
can_upgrade = local_sdk_version < remote_sdk_version
|
||||||
|
|
||||||
return can_upgrade
|
return can_upgrade
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user