2012-02-14, 15:14
In my plugin I pop a progress dialog for the lengthy operation of importing the iPhoto library. On most machines there is no (visible) problem, but on slower machines like the ATV2, the dialog takes many seconds display. During this wait the list items are still accessible, so most users think it didn't work and tend to click import a second time, which causes problems.
I could probably solve this through locking in my plugin (at least, preventing the second import operation), but I figured I'd ask here if this is actually how it's supposed to behave. It seems to me that after I do:
that the dialog should take over right away, especially given that it's modal.
Or is there something else I'm supposed to be doing to achieve this?
-j
I could probably solve this through locking in my plugin (at least, preventing the second import operation), but I figured I'd ask here if this is actually how it's supposed to behave. It seems to me that after I do:
Code:
progress_dialog = gui.DialogProgress()
progress_dialog.create("foo")
progress_dialog.update(0, "bar")
that the dialog should take over right away, especially given that it's modal.
Or is there something else I'm supposed to be doing to achieve this?
-j