Skip to content

Commit

Permalink
[#D3D-4855] Fixes unicode issue in user display name
Browse files Browse the repository at this point in the history
  • Loading branch information
AurL committed Jun 25, 2019
1 parent 082ee23 commit 160c012
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sketchfab/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def draw_login_ui(self):
self.AddButton(id=BTN_CONNECT_SKETCHFAB, flags=c4d.BFH_CENTER | c4d.BFV_BOTTOM, initw=350, inith=TEXT_WIDGET_HEIGHT, name="Connect to Sketchfab")
else:
if self.skfb_api.is_user_logged():
self.AddStaticText(id=LB_CONNECT_STATUS, flags=c4d.BFH_LEFT, initw=0, inith=0, name="Connected as {}".format(self.skfb_api.display_name))
self.AddStaticText(id=LB_CONNECT_STATUS, flags=c4d.BFH_LEFT, initw=0, inith=0, name=u"Connected as {}".format(self.skfb_api.display_name))
self.AddButton(id=BTN_CONNECT_SKETCHFAB, flags=c4d.BFH_RIGHT | c4d.BFV_BOTTOM, initw=75, inith=TEXT_WIDGET_HEIGHT, name="Logout")
self.Enable(CHK_MY_MODELS, True)
else:
Expand All @@ -349,7 +349,7 @@ def draw_login_ui(self):
self.Enable(CHK_MY_MODELS, False)

# Little hack to get username set in UI
self.SetString(LB_CONNECT_STATUS, "Connected as {}".format(self.skfb_api.display_name))
self.SetString(LB_CONNECT_STATUS, u"Connected as {}".format(self.skfb_api.display_name))
self.LayoutChanged(GROUP_LOGIN)

def refresh_version_ui(self):
Expand Down

0 comments on commit 160c012

Please sign in to comment.