mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 13:53:13 +08:00
Only call success_callback if it's not None
It could also be called as a fire-and-forget update thing. Contributes to issue CURA-8539.
This commit is contained in:
parent
595a6580f5
commit
1ee9f73075
@ -153,6 +153,7 @@ class AuthorizationHelpers:
|
|||||||
failed_callback()
|
failed_callback()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if success_callback is not None:
|
||||||
success_callback(UserProfile(
|
success_callback(UserProfile(
|
||||||
user_id = profile_data["user_id"],
|
user_id = profile_data["user_id"],
|
||||||
username = profile_data["username"],
|
username = profile_data["username"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user