mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix for doing a ctrl+a when in the game area but not on any chunk not syncing
This commit is contained in:
@@ -3097,6 +3097,7 @@ function gametextwatcher(records) {
|
|||||||
game_text.append(chunk);
|
game_text.append(chunk);
|
||||||
}
|
}
|
||||||
chunk.classList.add("dirty");
|
chunk.classList.add("dirty");
|
||||||
|
did_deletes = true;
|
||||||
} else {
|
} else {
|
||||||
//For some reason we've deleted a chunk but it still exists in the DOM. Something is wrong here
|
//For some reason we've deleted a chunk but it still exists in the DOM. Something is wrong here
|
||||||
//Seems to loose the events on the item, but otherwise is OK. DEPLOY HACK!!!
|
//Seems to loose the events on the item, but otherwise is OK. DEPLOY HACK!!!
|
||||||
@@ -3128,6 +3129,9 @@ function gametextwatcher(records) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (did_deletes) {
|
||||||
|
savegametextchanges();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function savegametextchanges() {
|
function savegametextchanges() {
|
||||||
|
Reference in New Issue
Block a user