Skip to content

Commit

Permalink
updates: use set_custom_channel in releasechannel refresh
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Leonard <[email protected]>
  • Loading branch information
antonlacon committed Nov 19, 2023
1 parent d9c45dd commit 53d75ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/lib/modules/updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,11 @@ def set_release_channel(self, listItem):
del(self.struct['update']['settings']['Build']['hidden'])

# Refresh json for available build channels if ReleaseChannel is stable, testing, or custom with URL set
if release_channel != 'custom' or (release_channel == 'custom' and self.struct['update']['settings']['CustomChannel1']['value']):
if release_channel != 'custom':
self.update_json = self.build_json()
self.struct['update']['settings']['Channel']['values'] = self.get_channels()
elif release_channel == 'custom' and self.struct['update']['settings']['CustomChannel1']['value']:
self.set_custom_channel()


@log.log_function()
Expand Down

0 comments on commit 53d75ab

Please sign in to comment.