Always send user name for Sentry if available

CURA-11482
This commit is contained in:
Erwan MATHIEU 2024-01-15 15:22:25 +01:00
parent 557a95568c
commit ab322ae703
3 changed files with 2 additions and 6 deletions

View file

@ -344,6 +344,7 @@ class StartSliceJob(Job):
account = CuraApplication.getInstance().getCuraAPI().account
if account and account.isLoggedIn and not CuraApplication.getInstance().getPreferences().getValue("info/anonymous_engine_crash_report"):
self._slice_message.project_name = CuraApplication.getInstance().getPrintInformation().baseName
self._slice_message.user_name = account.userName
# Build messages for extruder stacks
for extruder_stack in global_stack.extruderList: