Fixed ordering issue with cache draw, also sharing draw cache space with all open tabs

This commit is contained in:
Yousef Khadadeh 2025-07-22 12:22:08 +03:00
parent 415921d881
commit 7fa82d3fa4
5 changed files with 59 additions and 69 deletions

View file

@ -163,12 +163,13 @@ template <typename T, typename IDType> class CollabList {
newObj->syncIgnore = false;
newObj->id = id;
newObj->obj = item;
newObj->pos = clientSideList.size() - 1;
item->collabListInfo = newObj;
serverSideList.emplace_back(newObj);
clientSideList.emplace_back(newObj);
newObj->pos = clientSideList.size() - 1;
if(clientInsertCallback)
clientInsertCallback(newObj);
if(updateCallback)