zoidy / walkmanmtp

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

Avoid UI freezing #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
A suggestion: use an async reader/writer to interface MTPAxe, because UI
freezes up when doing long operations such as reading device storage
contents.. a separate worker thread (you can use the backgroundworker
component) and a little window with a tiny animation saying "enumerating
devices", "reading storage", etc..

Original issue reported on code.google.com by pog...@gmail.com on 18 Apr 2008 at 4:37

GoogleCodeExporter commented 9 years ago
Actually, this is kind of the way it was supposed to be.  It's too much work 
trying
to keep the user from doing stuff that might interfere with the operation in 
progress :)

As for a notification, there is already one, but it only appears at the 
beginning.
I'll add it so it appears when refreshing manually as well.

Original comment by rios.fer...@gmail.com on 18 Apr 2008 at 9:47

GoogleCodeExporter commented 9 years ago
well i've already done it a couple of times, you only have to show that modal 
dialog
after starting the worker thread and close it on completion... that's a good 
way to
prevent users to click when they shouldn't

Original comment by pog...@gmail.com on 19 Apr 2008 at 8:54

GoogleCodeExporter commented 9 years ago
you're right, the most elegant solution would be not to have the UI freeze up.  
The
most elegant way would be to have the program detect if the device is busy or 
not
when trying to do stuff.  Implementing this would require some effort though.

Original comment by rios.fer...@gmail.com on 1 May 2008 at 2:20