diff --git a/src/controller/mainController.py b/src/controller/mainController.py index 7b7e594..50e803f 100644 --- a/src/controller/mainController.py +++ b/src/controller/mainController.py @@ -56,7 +56,7 @@ class Controller(object): self.create_controls() self.window.Show() self.connect_events() - call_threaded(updater.do_update) + call_threaded(updater.do_update, update_type=self.session.settings["general"]["update_channel"]) def create_controls(self): log.debug("Creating controls for the window...") @@ -266,7 +266,7 @@ class Controller(object): b.get_more_items() def check_for_updates(self, *args, **kwargs): - update = updater.do_update() + update = updater.do_update(update_type=self.session.settings["general"]["update_channel"]) if update == False: commonMessages.no_update_available() diff --git a/src/update/update.py b/src/update/update.py index 275a515..22fa4bf 100644 --- a/src/update/update.py +++ b/src/update/update.py @@ -24,7 +24,7 @@ def perform_update(endpoint, current_version, update_type="stable", app_name='', return False available_version, available_description, update_url = find_version_data(update_type, current_version, available_update) if available_version == False: - return + return False logger.info("A new update is available. Version %s" % available_version) if callable(update_available_callback) and not update_available_callback(version=available_version, description=available_description): #update_available_callback should return a falsy value to stop the process logger.info("User canceled update.")