mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
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:
parent
41fa61ada9
commit
64e413b9d1
1 changed files with 4 additions and 0 deletions
|
@ -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/"
|
||||
|
|
Loading…
Reference in a new issue