rschroll / beru

The Basic Epub Reader for Ubuntu
http://rschroll.github.io/beru/
GNU General Public License v3.0
25 stars 12 forks source link

Automatic refresh of book list #37

Open rschroll opened 10 years ago

rschroll commented 10 years ago

With #21, we now can refresh the book list manually. But it might be nice for this to happen automatically. There are two ways to do this:

File system watches: But we'd have to set these up for all directories separately, and we still have to scan the directory that's had a change to see what has changed.

Polling: Every minute or so, we can redo the search for books.

In either case, I'm a bit worried about resource usage, especially on phones.

rschroll commented 10 years ago

Perhaps we could poll whenever Beru regains focus. This would ensure that we don't disrupt the book list while the user's in the middle of looking through it. On the desktop, at least, we would expect Beru not to have focus while the user's adding books. I don't know if that's the case on the phone as well.

It looks like this is sorta supported in QML: http://comments.gmane.org/gmane.comp.lib.qt.user/7103