Always import CuraVersion

I don't know why there was this check around it because it is always necessary to start the application.

Contributes to issue CURA-5330.
This commit is contained in:
Ghostkeeper 2018-06-15 13:28:55 +02:00
parent 1789a8f33e
commit 7a33a8f212
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -111,13 +111,12 @@ from UM.FlameProfiler import pyqtSlot
numpy.seterr(all = "ignore")
if TYPE_CHECKING:
try:
from cura.CuraVersion import CuraVersion, CuraBuildType, CuraDebugMode
except ImportError:
CuraVersion = "master" # [CodeStyle: Reflecting imported value]
CuraBuildType = ""
CuraDebugMode = False
try:
from cura.CuraVersion import CuraVersion, CuraBuildType, CuraDebugMode
except ImportError:
CuraVersion = "master" # [CodeStyle: Reflecting imported value]
CuraBuildType = ""
CuraDebugMode = False
class CuraApplication(QtApplication):