Abort fix for new UI

This commit is contained in:
ebolam
2022-08-19 19:08:09 -04:00
parent 1c0dd7d25b
commit 35245288da
2 changed files with 6 additions and 0 deletions

View File

@@ -708,6 +708,9 @@ class system_settings(settings):
if name not in self.local_only_variables and name[0] != "_" and not new_variable:
process_variable_changes(self.socketio, self.__class__.__name__.replace("_settings", ""), name, value, old_value)
if name == "aibusy" and value == False:
koboldai_vars.abort = False
class KoboldStoryRegister(object):
def __init__(self, socketio, story_settings, koboldai_vars, tokenizer=None, sequence=[]):
self.socketio = socketio

View File

@@ -427,6 +427,9 @@ function do_ai_busy(data) {
}
favicon.stop_swap()
document.getElementById('btnsend').textContent = "Submit";
for (item of document.getElementsByClassName('statusbar_outer')) {
item.classList.add("hidden");
}
}
}