Skip to content

Commit d6eaca1

Browse files
committed
updates: use set_custom_channel in releasechannel refresh
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
1 parent 0cda763 commit d6eaca1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

resources/lib/modules/updates.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,11 @@ def set_release_channel(self, listItem):
323323
del(self.struct['update']['settings']['Build']['hidden'])
324324

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

330332

331333
@log.log_function()

0 commit comments

Comments
 (0)