burstas / peerblock

Automatically exported from code.google.com/p/peerblock
Other
0 stars 0 forks source link

"Generating List Cache" progress-bar only goes to ~60% #249

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When the "Generating List Cache" window is up and PeerBlock is merging
together all lists, a window pops up with a helpful progress bar to see how
much of it we've done.  The problem is, it chugs right along to about the
60% mark, then the window closes.

This can be confusing to users as they may think it didn't successfully
complete, and just looks generally sloppy.

Original issue reported on code.google.com by peerbloc...@gmail.com on 13 Jan 2010 at 5:12

GoogleCodeExporter commented 8 years ago
Looks like this is due to Windows smoothing out the progress bar for you
(automatically).  We tell Windows to update the progress bar to 100%, and it 
somewhat
slowly updates the progress bar to move from e.g. 90% (or wherever we were 
last) to
100%.  The problem is, we're closing this window before Windows has a chance to 
make
it all the way to 100%!

The only way I can find to get the progress-bar to make it all the way to 100% 
is to
intentionally delay the window-close for a second.  (Actually, probably closer 
to 700
msec...)  I think that this light UI "glitch" is preferable to forcing the 
Generating
List Cache step to waste a second doing absolutely nothing, so am marking this 
issue
as "Won't Fix".

This problem will go away once we move the Generating List Cache step to a 
background
task, anyway...

Original comment by peerbloc...@gmail.com on 4 Mar 2010 at 3:35