From 64e413b9d11bd787d5299db609264d0cc564a8fd Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sat, 22 Aug 2015 04:22:57 -0500 Subject: [PATCH] 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. --- resources/lib/Utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/lib/Utils.py b/resources/lib/Utils.py index 37886706..4cede044 100644 --- a/resources/lib/Utils.py +++ b/resources/lib/Utils.py @@ -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/"