Browse Source

Add "Enterprise" to the app display name.
Will also end up in the main window title and at the top of
the debug log. app_name remains unchanged.

CURA-7011

Nino van Hooff 5 years ago
parent
commit
2e4ee73d2f
1 changed files with 10 additions and 7 deletions
  1. 10 7
      cura/ApplicationMetadata.py

+ 10 - 7
cura/ApplicationMetadata.py

@@ -22,13 +22,6 @@ try:
 except ImportError:
     CuraAppName = DEFAULT_CURA_APP_NAME
 
-try:
-    from cura.CuraVersion import CuraAppDisplayName  # type: ignore
-    if CuraAppDisplayName == "":
-        CuraAppDisplayName = DEFAULT_CURA_DISPLAY_NAME
-except ImportError:
-    CuraAppDisplayName = DEFAULT_CURA_DISPLAY_NAME
-
 try:
     from cura.CuraVersion import CuraVersion  # type: ignore
     if CuraVersion == "":
@@ -53,3 +46,13 @@ except ImportError:
 # Various convenience flags indicating what kind of Cura build it is.
 __ENTERPRISE_VERSION_TYPE = "enterprise"
 IsEnterpriseVersion = CuraBuildType.lower() == __ENTERPRISE_VERSION_TYPE
+
+try:
+    from cura.CuraVersion import CuraAppDisplayName  # type: ignore
+    if CuraAppDisplayName == "":
+        if IsEnterpriseVersion:
+            CuraAppDisplayName = DEFAULT_CURA_DISPLAY_NAME + " Enterprise"
+        else:
+            CuraAppDisplayName = DEFAULT_CURA_DISPLAY_NAME
+except ImportError:
+    CuraAppDisplayName = DEFAULT_CURA_DISPLAY_NAME