Merge pull request #210 from db0/model_loading_msg

fix model loading format bleeding into gui
This commit is contained in:
henk717 2022-09-16 00:11:54 +02:00 committed by GitHub
commit 8eb4cd36ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -393,7 +393,8 @@ class Send_to_socketio(object):
print(bar, end="")
time.sleep(0.01)
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:
pass