thesamim / TickTickSync

GNU General Public License v3.0
135 stars 8 forks source link

Open modal causes plugin to think all tasks have been deleted #77

Closed LemurTech closed 6 months ago

LemurTech commented 6 months ago

I've experienced this multiple times now. When a modal dialogue of some kind is open (for example, the Quick Switch or Command Palette), and the plugin attempts a sync, it will think that all tasks on the current page have been deleted and will prompt for the removal of these tasks from TickTick. This can really cause problems, as I've had it that the dialogue for deletion comes up when I'm typing into the modal and inadvertently hit enter--thereby deleting a bunch of tasks that I did not intend to delete.

image

thesamim commented 6 months ago

@LemurTech : There are actually a number of situations that cause that to happen. I've decided it's a false positive and removed that code. If the tasks ARE actually deleted, they will get deleted on the next full Sync.

Please test on version 1.0.18 which should be ready later today.