From 171609f9de311736c5a9e6f30235ce330664a074 Mon Sep 17 00:00:00 2001 From: Nino van Hooff Date: Wed, 11 Dec 2019 16:25:57 +0100 Subject: [PATCH] Refactor: Add "Enterprise" to the app display name. CURA-7011 --- cura/ApplicationMetadata.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cura/ApplicationMetadata.py b/cura/ApplicationMetadata.py index eb6ab66296..01e6769d8e 100644 --- a/cura/ApplicationMetadata.py +++ b/cura/ApplicationMetadata.py @@ -50,9 +50,9 @@ IsEnterpriseVersion = CuraBuildType.lower() == __ENTERPRISE_VERSION_TYPE try: from cura.CuraVersion import CuraAppDisplayName # type: ignore if CuraAppDisplayName == "": + CuraAppDisplayName = DEFAULT_CURA_DISPLAY_NAME if IsEnterpriseVersion: - CuraAppDisplayName = DEFAULT_CURA_DISPLAY_NAME + " Enterprise" - else: - CuraAppDisplayName = DEFAULT_CURA_DISPLAY_NAME + CuraAppDisplayName = CuraAppDisplayName + " Enterprise" + except ImportError: CuraAppDisplayName = DEFAULT_CURA_DISPLAY_NAME