diff --git a/lbrynet/lbrynet_daemon/UIManager.py b/lbrynet/lbrynet_daemon/UIManager.py index 93d6b91ec..65c1e244f 100644 --- a/lbrynet/lbrynet_daemon/UIManager.py +++ b/lbrynet/lbrynet_daemon/UIManager.py @@ -61,9 +61,12 @@ class UIManager(object): self.loaded_requirements = None def setup(self, branch=None, check_requirements=None, user_specified=None): - local_ui_path = settings.local_ui_path or user_specified - self.branch = settings.ui_branch or branch - self.check_requirements = settings.check_ui_requirements or check_requirements + local_ui_path = (user_specified if user_specified is not None + else settings.local_ui_path) + self.branch = branch if branch is not None else settings.ui_branch + + self.check_requirements = (check_requirements if check_requirements is not None + else settings.check_ui_requirements) if self._check_for_bundled_ui(): return defer.succeed(True)