mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:19:13 +08:00
Use cleaner notation for use_sentry env variable
CURA-11364 Co-authored-by: Casper Lamboo <c.lamboo@ultimaker.com>
This commit is contained in:
parent
60bf2fbc2c
commit
593e959dd5
@ -1101,10 +1101,7 @@ class CuraEngineBackend(QObject, Backend):
|
|||||||
if auto_slice:
|
if auto_slice:
|
||||||
self._change_timer.start()
|
self._change_timer.start()
|
||||||
elif preference == "info/send_engine_crash":
|
elif preference == "info/send_engine_crash":
|
||||||
if CuraApplication.getInstance().getPreferences().getValue("info/send_engine_crash"):
|
os.environ["use_sentry"] = "1" if CuraApplication.getInstance().getPreferences().getValue("info/send_engine_crash") else "0"
|
||||||
os.environ["use_sentry"] = str(1)
|
|
||||||
else:
|
|
||||||
os.environ["use_sentry"] = str(0)
|
|
||||||
|
|
||||||
def tickle(self) -> None:
|
def tickle(self) -> None:
|
||||||
"""Tickle the backend so in case of auto slicing, it starts the timer."""
|
"""Tickle the backend so in case of auto slicing, it starts the timer."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user