QTodoTxt / QTodoTxt2

Rewrite of GUI code of QTodoTxt using qml.
http://qtodotxt.org
175 stars 34 forks source link

Make dialog about an externally modified file optional #100

Open licquia opened 6 years ago

licquia commented 6 years ago

I use QTodoTxt2 with other tools (Android app, command-line tool, recurring task plugin), and every time I do things with one of these tools, QTodoTxt2 pops up a notice asking if I want to reload. The answer, for me, is always "yes", and to be honest, I'm not sure why I'd ever say "no".

Could we make the notice optional, and just have it reload on external updates automatically?

oroulet commented 6 years ago

The worst case is to have a file corruption and reload the corrupted file. But we could make this an option..

licquia commented 6 years ago

Well, it just corrupted my todo.txt file because of the dialog.

What happened was that the dialog popped up for me, but the program got confused somehow, and the confirmation dialog was not refreshing or responding. To clear it, I had to kill qtodotxt. When I did this, it decided to write something to todo.txt, as my other clients all updated.

Upon checking, I found that a recurring task I've configured to be automatically added once a week had been lost. This was easy to fix, but imagine if it had been a task entered on my Android app.

licquia commented 5 years ago

I've filed pull request #128 that fixes this issue for me.

jonniestuefer commented 5 years ago

I've been trying to track down why my todo.txt is reverting to a previous version using syncthing with QTodoTxt, QTodoTxt2 on Windows and Linux and Simpletask on Android. I suspect this might be caused by the same issue, and look forward to this being merged. Thanks @licquia!

licquia commented 5 years ago

@jonniestuefer You're welcome. If you'd like to try a preview, my fork is here:

https://github.com/licquia/QTodoTxt2/tree/autoreload