Fixed merge conflict

This commit is contained in:
Manuel Cortez 2018-12-27 11:12:48 -06:00
commit 009b1cddcd
2 changed files with 3 additions and 3 deletions

View File

@ -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()

View File

@ -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.")