Merge pull request #257 from lbryio/ensure-ui-loads
bug fix: ensure the bundled ui is loaded
This commit is contained in:
commit
edc89be794
1 changed files with 4 additions and 4 deletions
|
@ -255,11 +255,11 @@ class BundledUIManager(object):
|
||||||
Returns True if there is a bundled UI, False otherwise
|
Returns True if there is a bundled UI, False otherwise
|
||||||
"""
|
"""
|
||||||
if not self.bundle_is_available():
|
if not self.bundle_is_available():
|
||||||
|
log.debug('No bundled UI is available')
|
||||||
return False
|
return False
|
||||||
if self.is_active_already_bundled_ui():
|
if not self.is_active_already_bundled_ui():
|
||||||
return True
|
replace_dir(self.active_dir, self.bundled_ui_path)
|
||||||
log.info('Using bundled UI')
|
log.info('Loading the bundled UI')
|
||||||
replace_dir(self.active_dir, self.bundled_ui_path)
|
|
||||||
load_ui(self.root, self.active_dir)
|
load_ui(self.root, self.active_dir)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue