mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-02-24 23:47:43 +01:00
Won't freeze anymore if you delete the prompt
This commit is contained in:
parent
7059c18f70
commit
90e558cf3f
@ -1429,6 +1429,8 @@ def inlinedelete(chunk):
|
|||||||
# Don't delete prompt
|
# Don't delete prompt
|
||||||
if(chunk == 0):
|
if(chunk == 0):
|
||||||
# Send error message
|
# Send error message
|
||||||
|
refresh_story()
|
||||||
|
emit('from_server', {'cmd': 'errmsg', 'data': "Cannot delete the prompt."})
|
||||||
emit('from_server', {'cmd': 'editmode', 'data': 'false'}, broadcast=True)
|
emit('from_server', {'cmd': 'editmode', 'data': 'false'}, broadcast=True)
|
||||||
else:
|
else:
|
||||||
del vars.actions[chunk-1]
|
del vars.actions[chunk-1]
|
||||||
|
@ -852,6 +852,7 @@ $(document).ready(function(){
|
|||||||
}, 5);
|
}, 5);
|
||||||
}
|
}
|
||||||
newly_loaded = false;
|
newly_loaded = false;
|
||||||
|
hideMessage();
|
||||||
} else if(msg.cmd == "scrolldown") {
|
} else if(msg.cmd == "scrolldown") {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
$('#gamescreen').animate({scrollTop: $('#gamescreen').prop('scrollHeight')}, 1000);
|
$('#gamescreen').animate({scrollTop: $('#gamescreen').prop('scrollHeight')}, 1000);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user