Avoid race condition when refreshing collection backend
I noticed that whenever I try to refresh the back-end for Google task lists, those task lists get temporarily removed and then added back again. Is it expected behavior? This not only applies to Evolution, I also tried calling the function via GJS and same thing happens (hence, I'm posting here).
To reproduce:
- In Evolution's "Tasks" view, right click on a Google account which has some task lists in it (e.g. juozas@.. in a video below).
- Select "Refresh list of account task lists".
- Do it at least 3 times in quick succession.
I understand that rarely would anyone perform step three as described (i.e. refresh at least 3 times in quick succession) but I'm reporting it just in case it uncovers any other underlying issues. Also, in theory, it could cause some trouble for apps using EDS because re-added task lists have new uids.. EWS task lists are not affected by this.
Here's a video: https://www.youtube.com/watch?v=DZ3KBxd901w
GNOME Shell 3.36.1 / Evolution 3.36.2
Thanks