feat: show basic progress

This commit is contained in:
Swann Martinez 2020-02-07 18:09:33 +01:00
parent 8a2d178a4f
commit b182632723
No known key found for this signature in database
GPG Key ID: 414CCAFD8DA720E1
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit 5a5571d943a1cb8a4b26e9397d0ced42acbea938
Subproject commit 425d2c13824945dacb2f88d5fbfe51950565abf5

View File

@ -18,7 +18,7 @@ ICONS_PROP_STATES = ['TRIA_DOWN', # ADDED
def get_state_str(state):
state_str = 'None'
if state == STATE_WAITING:
state_str = 'WAITING'
state_str = 'COMMITING DATA'
elif state == STATE_SYNCING:
state_str = 'SYNCING'
elif state == STATE_AUTH:
@ -67,7 +67,7 @@ class SESSION_PT_settings(bpy.types.Panel):
row.label(text=f"{get_state_str(cli_state['STATE'])}")
row = layout.row()
if cli_state['STATE'] in [STATE_SYNCING,STATE_SRV_SYNC]:
if cli_state['STATE'] in [STATE_SYNCING,STATE_SRV_SYNC,STATE_WAITING]:
row.label(text=f"{cli_state['CURRENT']}/{cli_state['TOTAL']}")
row = layout.row()
row.operator("session.stop", icon='QUIT', text="CANCEL")