Direct Paths: Fix AttributeError for widgets

- Fixes #588
This commit is contained in:
croneter 2019-01-01 16:53:50 +01:00
parent 2e4e1e0aea
commit bd192e4b6a

View file

@ -19,9 +19,6 @@ def remove_trailing_slash(path):
class Sync(object):
def __init__(self, entrypoint=False):
if entrypoint:
self.load_entrypoint()
else:
self.load()
# Do we need to run a special library scan?
self.run_lib_scan = None
@ -83,8 +80,3 @@ class Sync(object):
# Shall Kodi show dialogs for syncing/caching images? (e.g. images left
# to sync)
self.image_sync_notifications = utils.settings('imageSyncNotifications') == 'true'
def load_entrypoint(self):
self.direct_paths = utils.settings('useDirectPaths') == '1'
self.indicate_media_versions = utils.settings('indicate_media_versions') == "true"
self.path_verified = True