mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 22:35:03 -06:00
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:
parent
1789a8f33e
commit
7a33a8f212
1 changed files with 6 additions and 7 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue