mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Always send user name for Sentry if available
CURA-11482
This commit is contained in:
parent
557a95568c
commit
ab322ae703
3 changed files with 2 additions and 6 deletions
|
@ -199,7 +199,6 @@ class CuraEngineBackend(QObject, Backend):
|
|||
|
||||
# Ensure that the initial value for send_engine_crash is handled correctly.
|
||||
application.callLater(self._onPreferencesChanged, "info/send_engine_crash")
|
||||
application.callLater(self._onPreferencesChanged, "info/anonymous_engine_crash_report")
|
||||
|
||||
def startPlugins(self) -> None:
|
||||
"""
|
||||
|
@ -1104,11 +1103,6 @@ class CuraEngineBackend(QObject, Backend):
|
|||
self._change_timer.start()
|
||||
elif preference == "info/send_engine_crash":
|
||||
os.environ["USE_SENTRY"] = "1" if CuraApplication.getInstance().getPreferences().getValue("info/send_engine_crash") else "0"
|
||||
elif preference == "info/anonymous_engine_crash_report":
|
||||
if not CuraApplication.getInstance().getPreferences().getValue("info/anonymous_engine_crash_report"):
|
||||
account = CuraApplication.getInstance().getCuraAPI().account
|
||||
if account and account.isLoggedIn:
|
||||
os.environ["CURAENGINE_SENTRY_USER"] = account.userName
|
||||
|
||||
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