mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 23:16:06 +08:00
Take DebugMode flag from CuraVersion
CURA-4539
This commit is contained in:
parent
4586e3dd55
commit
320330b788
@ -95,10 +95,11 @@ numpy.seterr(all="ignore")
|
|||||||
MYPY = False
|
MYPY = False
|
||||||
if not MYPY:
|
if not MYPY:
|
||||||
try:
|
try:
|
||||||
from cura.CuraVersion import CuraVersion, CuraBuildType
|
from cura.CuraVersion import CuraVersion, CuraBuildType, CuraDebugMode
|
||||||
except ImportError:
|
except ImportError:
|
||||||
CuraVersion = "master" # [CodeStyle: Reflecting imported value]
|
CuraVersion = "master" # [CodeStyle: Reflecting imported value]
|
||||||
CuraBuildType = ""
|
CuraBuildType = ""
|
||||||
|
CuraDebugMode = False
|
||||||
|
|
||||||
|
|
||||||
class CuraApplication(QtApplication):
|
class CuraApplication(QtApplication):
|
||||||
@ -205,9 +206,8 @@ class CuraApplication(QtApplication):
|
|||||||
|
|
||||||
self._additional_components = {} # Components to add to certain areas in the interface
|
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,
|
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")
|
tray_icon_name = "cura-icon-32.png")
|
||||||
|
|
||||||
self.default_theme = "cura-light"
|
self.default_theme = "cura-light"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user