Code review comment for lp:~pkunal-parmar/ubuntu-calendar-app/CalManagement

Revision history for this message
Kunal Parmar (pkunal-parmar) wrote :

> Where do you save the collection after the user select or unselect it?
> This should be saved back in the model.

If user change the color then I save collection like this

136 + var collection = root.model.collection(modelData.collectionId);
137 + collection.color = color;
138 + root.model.saveCollection(collection);
139 + })

But if user just select and unselect the collection for filtering event. I just do the following.

152 + onCheckedChanged: {
153 + modelData.setExtendedMetaData("collection-selected",checkBox.checked)
154 + }

« Back to merge proposal