fix: service launching error

Related to #76
This commit is contained in:
Swann 2020-03-20 11:46:43 +01:00
parent 931301074e
commit b8f46c2523
No known key found for this signature in database
GPG Key ID: B880407E0F5F413E
2 changed files with 7 additions and 3 deletions

@ -1 +1 @@
Subproject commit 2e84bb65b8a430f6b98533bd9a95028fb243f535
Subproject commit a892dcee04329f662e16bf8d353dd387d5fbcf13

View File

@ -6,7 +6,8 @@ from .libs.replication.replication.constants import (ADDED, ERROR, FETCHED,
STATE_ACTIVE, STATE_AUTH,
STATE_CONFIG, STATE_SYNCING,
STATE_INITIAL, STATE_SRV_SYNC,
STATE_WAITING, STATE_QUITTING)
STATE_WAITING, STATE_QUITTING,
STATE_LAUNCHING_SERVICES)
ICONS_PROP_STATES = ['TRIA_DOWN', # ADDED
'TRIA_UP', # COMMITED
@ -35,7 +36,7 @@ def printProgressBar (iteration, total, prefix = '', suffix = '', decimals = 1,
return '{} |{}| {}/{}{}'.format(prefix, bar, iteration,total, suffix)
def get_state_str(state):
state_str = 'None'
state_str = 'UNKNOWN'
if state == STATE_WAITING:
state_str = 'WARMING UP DATA'
elif state == STATE_SYNCING:
@ -52,6 +53,9 @@ def get_state_str(state):
state_str = 'INIT'
elif state == STATE_QUITTING:
state_str = 'QUITTING SESSION'
elif state == STATE_LAUNCHING_SERVICES:
state_str = 'LAUNCHING SERVICES'
return state_str
class SESSION_PT_settings(bpy.types.Panel):