refactor: interface api changes

This commit is contained in:
Swann
2021-03-04 14:22:54 +01:00
parent 0ccd0563ea
commit 2d638ef76f
5 changed files with 56 additions and 55 deletions

View File

@ -399,7 +399,7 @@ class SessionStatusWidget(Widget):
text_scale = self.preferences.presence_hud_scale
ui_scale = bpy.context.preferences.view.ui_scale
color = [1, 1, 0, 1]
state = session.state.get('STATE')
state = session.state
state_str = f"{get_state_str(state)}"
if state == STATE_ACTIVE: