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
1 changed files with 4 additions and 0 deletions

View File

@ -246,6 +246,10 @@ def reset():
if return_value == 0:
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
import shutil
path = "special://profile/library/video/"