mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Won't freeze anymore if you delete the prompt
This commit is contained in:
@ -1429,6 +1429,8 @@ def inlinedelete(chunk):
|
||||
# Don't delete prompt
|
||||
if(chunk == 0):
|
||||
# Send error message
|
||||
refresh_story()
|
||||
emit('from_server', {'cmd': 'errmsg', 'data': "Cannot delete the prompt."})
|
||||
emit('from_server', {'cmd': 'editmode', 'data': 'false'}, broadcast=True)
|
||||
else:
|
||||
del vars.actions[chunk-1]
|
||||
|
Reference in New Issue
Block a user