From 105d863979b577efe621431a1fb3cc8af2c54258 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Fri, 8 May 2015 15:46:07 +0200 Subject: [PATCH] fixed error in incrementalsync --- resources/lib/LibrarySync.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/resources/lib/LibrarySync.py b/resources/lib/LibrarySync.py index ccaddbe2..2f6931e1 100644 --- a/resources/lib/LibrarySync.py +++ b/resources/lib/LibrarySync.py @@ -524,10 +524,8 @@ class LibrarySync(): WINDOW.setProperty("SyncDatabaseRunning", "true") #show the progress dialog - pDialog = None if (dbSyncIndication): - pDialog = xbmcgui.DialogProgressBG() - pDialog.create('Emby for Kodi', 'Performing incremental sync...') + xbmcgui.Dialog().notification('Emby for Kodi', 'Performing incremental sync...', "special://home/addons/plugin.video.emby/icon.png") connection = utils.KodiSQL("video") cursor = connection.cursor() @@ -607,10 +605,7 @@ class LibrarySync(): xbmc.executebuiltin("UpdateLibrary(video)") WINDOW.setProperty("SyncDatabaseRunning", "false") - - #close the progress dialog - if(pDialog != None): - pDialog.close() + def ShouldStop(self):