mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 05:23:58 -06:00
Take DebugMode flag from CuraVersion
CURA-4539
This commit is contained in:
parent
4586e3dd55
commit
320330b788
1 changed files with 3 additions and 3 deletions
|
@ -95,10 +95,11 @@ numpy.seterr(all="ignore")
|
|||
MYPY = False
|
||||
if not MYPY:
|
||||
try:
|
||||
from cura.CuraVersion import CuraVersion, CuraBuildType
|
||||
from cura.CuraVersion import CuraVersion, CuraBuildType, CuraDebugMode
|
||||
except ImportError:
|
||||
CuraVersion = "master" # [CodeStyle: Reflecting imported value]
|
||||
CuraBuildType = ""
|
||||
CuraDebugMode = False
|
||||
|
||||
|
||||
class CuraApplication(QtApplication):
|
||||
|
@ -205,9 +206,8 @@ class CuraApplication(QtApplication):
|
|||
|
||||
self._additional_components = {} # Components to add to certain areas in the interface
|
||||
|
||||
is_debug_mode = CuraBuildType.strip().lower() == "debug"
|
||||
super().__init__(name = "cura", version = CuraVersion, buildtype = CuraBuildType,
|
||||
is_debug_mode = is_debug_mode,
|
||||
is_debug_mode = CuraDebugMode,
|
||||
tray_icon_name = "cura-icon-32.png")
|
||||
|
||||
self.default_theme = "cura-light"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue