diff options
author | Ghostkeeper <rubend@tutanota.com> | 2021-12-14 13:48:58 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2021-12-14 13:48:58 +0300 |
commit | 9140b71b1998d75d51ae556bbb63059de6016c9c (patch) | |
tree | 6bc49869a84820770d325d5c0300ed9f1e42bdec /cura/UI | |
parent | 64dec9ecc10eb81b68aecc4dcf586e80c03dec01 (diff) | |
parent | 2000f8143a1392ea1d198b485ba17e84dba33594 (diff) |
Merge branch 'libArachne_rebased'
Conflicts:
plugins/SimulationView/SimulationPass.py -> Reverted layer view optimisation in Master while some whitespace changed in Arachne.
resources/definitions -> Bunch of conflicts with profile updates.
resources/quality -> Bunch of conflicts with profile updates.
resources/texts/change_log.txt -> Removed the Arachne change log (as they are internal versions). It'll have to be re-added when we release this version as stable.
Diffstat (limited to 'cura/UI')
-rw-r--r-- | cura/UI/CuraSplashScreen.py | 6 | ||||
-rw-r--r-- | cura/UI/TextManager.py | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/cura/UI/CuraSplashScreen.py b/cura/UI/CuraSplashScreen.py index d9caa207f4..4fa798247d 100644 --- a/cura/UI/CuraSplashScreen.py +++ b/cura/UI/CuraSplashScreen.py @@ -17,7 +17,9 @@ class CuraSplashScreen(QSplashScreen): self._scale = 0.7 self._version_y_offset = 0 # when extra visual elements are in the background image, move version text down - if ApplicationMetadata.IsEnterpriseVersion: + if ApplicationMetadata.IsAlternateVersion: + splash_image = QPixmap(Resources.getPath(Resources.Images, "cura_wip.png")) + elif ApplicationMetadata.IsEnterpriseVersion: splash_image = QPixmap(Resources.getPath(Resources.Images, "cura_enterprise.png")) self._version_y_offset = 26 else: @@ -70,7 +72,7 @@ class CuraSplashScreen(QSplashScreen): font = QFont() # Using system-default font here font.setPixelSize(18) painter.setFont(font) - painter.drawText(60, 70 + self._version_y_offset, round(330 * self._scale), round(230 * self._scale), Qt.AlignLeft | Qt.AlignTop, version[0]) + painter.drawText(60, 70 + self._version_y_offset, round(330 * self._scale), round(230 * self._scale), Qt.AlignLeft | Qt.AlignTop, version[0] if not ApplicationMetadata.IsAlternateVersion else ApplicationMetadata.CuraBuildType) if len(version) > 1: font.setPixelSize(16) painter.setFont(font) diff --git a/cura/UI/TextManager.py b/cura/UI/TextManager.py index e45689936b..77dadae809 100644 --- a/cura/UI/TextManager.py +++ b/cura/UI/TextManager.py @@ -46,7 +46,9 @@ class TextManager(QObject): line = line.replace("[", "")
line = line.replace("]", "")
open_version = Version(line)
- if open_version > Version([14, 99, 99]): # Bit of a hack: We released the 15.x.x versions before 2.x
+ if open_version < Version([0, 0, 1]): # Something went wrong with parsing, assume non-numerical alternate version that should be on top.
+ open_version = Version([99, 99, 99])
+ if Version([14, 99, 99]) < open_version < Version([16, 0, 0]): # Bit of a hack: We released the 15.x.x versions before 2.x
open_version = Version([0, open_version.getMinor(), open_version.getRevision(), open_version.getPostfixVersion()])
open_header = ""
change_logs_dict[open_version] = collections.OrderedDict()
@@ -66,7 +68,9 @@ class TextManager(QObject): text_version = version
if version < Version([1, 0, 0]): # Bit of a hack: We released the 15.x.x versions before 2.x
text_version = Version([15, version.getMinor(), version.getRevision(), version.getPostfixVersion()])
- content += "<h1>" + str(text_version) + "</h1><br>"
+ if version > Version([99, 0, 0]): # Leave it out altogether if it was originally a non-numbered version.
+ text_version = ""
+ content += ("<h1>" + str(text_version) + "</h1><br>") if text_version else ""
content += ""
for change in change_logs_dict[version]:
if str(change) != "":
|