From 8f52ae6f0c05b7535f267cafacf3e02a910fb57f Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Thu, 27 Dec 2018 11:11:30 -0600 Subject: [PATCH] Updated calls to autoupdate feature for alpha channel --- src/controller/mainController.py | 4 ++-- src/update/update.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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.")