mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06: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
1 changed files with 1 additions and 4 deletions
|
@ -1101,10 +1101,7 @@ class CuraEngineBackend(QObject, Backend):
|
|||
if auto_slice:
|
||||
self._change_timer.start()
|
||||
elif preference == "info/send_engine_crash":
|
||||
if CuraApplication.getInstance().getPreferences().getValue("info/send_engine_crash"):
|
||||
os.environ["use_sentry"] = str(1)
|
||||
else:
|
||||
os.environ["use_sentry"] = str(0)
|
||||
os.environ["use_sentry"] = "1" if CuraApplication.getInstance().getPreferences().getValue("info/send_engine_crash") else "0"
|
||||
|
||||
def tickle(self) -> None:
|
||||
"""Tickle the backend so in case of auto slicing, it starts the timer."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue