fix model loading format bleeding into gui

This commit is contained in:
Divided by Zer0 2022-09-16 00:08:59 +02:00
parent 77763da6e2
commit 9582722c2e
1 changed files with 2 additions and 1 deletions

View File

@ -393,7 +393,8 @@ class Send_to_socketio(object):
print(bar, end="") print(bar, end="")
time.sleep(0.01) time.sleep(0.01)
try: try:
emit('from_server', {'cmd': 'model_load_status', 'data': bar.replace(" ", " ")}, broadcast=True) gui_msg = bar.replace(f"{colors.PURPLE}INIT{colors.END} | ","").replace(" ", " ")
emit('from_server', {'cmd': 'model_load_status', 'data': gui_msg}, broadcast=True)
except: except:
pass pass