mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 23:33:14 +08:00
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
This commit is contained in:
parent
cbfa45dd25
commit
2e4ee73d2f
@ -22,13 +22,6 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
CuraAppName = DEFAULT_CURA_APP_NAME
|
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:
|
try:
|
||||||
from cura.CuraVersion import CuraVersion # type: ignore
|
from cura.CuraVersion import CuraVersion # type: ignore
|
||||||
if CuraVersion == "":
|
if CuraVersion == "":
|
||||||
@ -53,3 +46,13 @@ except ImportError:
|
|||||||
# Various convenience flags indicating what kind of Cura build it is.
|
# Various convenience flags indicating what kind of Cura build it is.
|
||||||
__ENTERPRISE_VERSION_TYPE = "enterprise"
|
__ENTERPRISE_VERSION_TYPE = "enterprise"
|
||||||
IsEnterpriseVersion = CuraBuildType.lower() == __ENTERPRISE_VERSION_TYPE
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user