Use IsEnterpriseVersion in Toolbox

CURA-6569
This commit is contained in:
Lipu Fei 2019-11-05 10:53:49 +01:00
parent 792c365e9e
commit 8baa009f1f

View file

@ -129,7 +129,7 @@ class Toolbox(QObject, Extension):
def _restart(self): def _restart(self):
self._updateRequestHeader() self._updateRequestHeader()
# For an Essentials build, login is mandatory # For an Essentials build, login is mandatory
if not self._application.getCuraAPI().account.isLoggedIn and ApplicationMetadata.CuraBuildType == "essentials": if not self._application.getCuraAPI().account.isLoggedIn and ApplicationMetadata.IsEnterpriseVersion:
self.setViewPage("welcome") self.setViewPage("welcome")
else: else:
self.setViewPage("loading") self.setViewPage("loading")