mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Prevent loop if user decides not to reset db yet
This commit is contained in:
parent
5592429863
commit
c698e39bb2
2 changed files with 4 additions and 2 deletions
|
@ -1032,10 +1032,11 @@ class LibrarySync(threading.Thread):
|
|||
utils.settings("dbCreatedWithVersion",WINDOW.getProperty('minDBVersion'))
|
||||
# END TEMPORARY CODE
|
||||
|
||||
if (utils.settings("SyncInstallRunDone") == "true" and LooseVersion(utils.settings("dbCreatedWithVersion")) < LooseVersion(WINDOW.getProperty('minDBVersion'))):
|
||||
if (utils.settings("SyncInstallRunDone") == "true" and LooseVersion(utils.settings("dbCreatedWithVersion")) < LooseVersion(WINDOW.getProperty('minDBVersion'))) and WINDOW.getProperty('minDBVersionCheck') != "true":
|
||||
return_value = xbmcgui.Dialog().yesno("DB Version", "Detected the DB needs to be recreated for\nthis version of Emby for Kodi.\nProceed?")
|
||||
if return_value == 0:
|
||||
xbmcgui.Dialog().ok("Emby for Kodi","Emby for Kodi may not work\ncorrectly until the database is reset.\n")
|
||||
WINDOW.setProperty('minDBVersionCheck', "true")
|
||||
else:
|
||||
utils.reset()
|
||||
|
||||
|
|
|
@ -60,6 +60,7 @@ class Service():
|
|||
WINDOW.clearProperty('Server_status')
|
||||
WINDOW.clearProperty('startup')
|
||||
WINDOW.clearProperty('OnWakeSync')
|
||||
WINDOW.clearProperty('minDBVersionCheck')
|
||||
|
||||
# Set min DB version
|
||||
WINDOW.setProperty('minDBVersion','1.1.33')
|
||||
|
|
Loading…
Reference in a new issue