Fix db not scanning in after reset

Only affected by reset via add-on settings. Because the settings dialog
is open, when it closes, it overwrites every settings. So in order to
prevent this, close any dialogs open before the reset actually happens.
This commit is contained in:
angelblue05 2015-08-22 04:22:57 -05:00
parent 41fa61ada9
commit 64e413b9d1

View file

@ -246,6 +246,10 @@ def reset():
if return_value == 0: if return_value == 0:
return return
# Because the settings dialog could be open
# it seems to override settings so we need to close it before we reset settings.
xbmc.executebuiltin("Dialog.Close(all,true)")
#cleanup video nodes #cleanup video nodes
import shutil import shutil
path = "special://profile/library/video/" path = "special://profile/library/video/"