2016-02-18, 09:28
How do you cleanup a background progress dialog xbmcgui.DialogProgressBG() instances if the user interrupts the script by pressing the back button?
The next time the script is invoked a half-finished zombie DialogProgressBG appears as well as the new one.
The next time the script is invoked a half-finished zombie DialogProgressBG appears as well as the new one.
Code:
pDialog = xbmcgui.DialogProgressBG()
pDialog.create("long time operation...")
LotsOfWork()
# user presses back button
# so this doesn't execute
pDialog.close()