Fix dict changing size problem in retry_decrypt_..

Also add a copy() method to models, and make them able
to not have a sync_id (in which case they won't send pyotherside
events).
This commit is contained in:
miruka
2020-03-15 16:18:32 -04:00
parent d00db2256d
commit adbe2d88ee
4 changed files with 28 additions and 16 deletions

View File

@@ -60,13 +60,13 @@ QtObject {
function onModelItemInserted(syncId, index, item) {
// print("insert", syncId, index, item)
print("insert", syncId, index, item)
ModelStore.get(syncId).insert(index, item)
}
function onModelItemFieldChanged(syncId, oldIndex, newIndex, field, value){
// print("change", syncId, oldIndex, newIndex, field, value)
print("change", syncId, oldIndex, newIndex, field, value)
const model = ModelStore.get(syncId)
model.setProperty(oldIndex, field, value)