Reliable channel used to finalize component updates

This commit is contained in:
Yousef Khadadeh 2025-10-01 08:59:44 +03:00
parent 14c6e7ceac
commit 278792a0ff
11 changed files with 36 additions and 28 deletions

View file

@ -71,7 +71,7 @@ void TextBoxTool::tool_update() {
return;
}
else {
controls.intermediateItem->client_send_update(drawP);
controls.intermediateItem->client_send_update(drawP, false);
controls.intermediateItem->commit_update(drawP);
}
break;
@ -85,7 +85,7 @@ bool TextBoxTool::prevent_undo_or_redo() {
void TextBoxTool::commit() {
if(controls.intermediateItem && controls.intermediateItem->collabListInfo.lock()) {
controls.intermediateItem->client_send_update(drawP);
controls.intermediateItem->client_send_update(drawP, true);
controls.intermediateItem->commit_update(drawP);
}
controls.intermediateItem = nullptr;