[bt-devel] Bookmarks saving
'Kang Sun'
k486 at digizip.com
Wed Nov 25 08:51:20 MST 2009
I'm doing that now. The timer will only start after a modification and
trigger a save after 1.5 s of no more bookmark modifications.
It just bothered me that you can prevent a save by consistantly moving
bookmarks around, but it's a contrived case.
* Raoul Snyman <raoul.snyman at saturnlaboratories.co.za> wrote on [2009/11/25 09:49]:
> On Wednesday 25 November 2009 17:23:32 Eeli Kaikkonen wrote:
> > I mean, what are those consecutive calls? I didn't notice any. And if
> > there are, there might be a better way to handle them than continual
> > polling.
>
> What about a pseudo-timer mechanism? Only save bookmarks after X
> seconds/minutes. Basically, have a variable that keeps the last saved time,
> and then if you change anything it looks at the last saved time. Then if that
> time is more than, let's say, 10 seconds ago, it saves the bookmarks. When it
> saves them, it updates the time variable, of course.
>
> Just a thought...
>
> --
> Raoul Snyman, B.Tech IT (Software Engineering)
> Saturn Laboratories
> m: 082 550 3754
> e: raoul.snyman at saturnlaboratories.co.za
> w: www.saturnlaboratories.co.za
> b: blog.saturnlaboratories.co.za
>
> _______________________________________________
> bt-devel mailing list
> bt-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/bt-devel
More information about the bt-devel
mailing list