Skip to content

Commit 5a64424

Browse files
committed
updates: use set_custom_channel in releasechannel refresh
Signed-off-by: Ian Leonard <[email protected]>
1 parent aa898a4 commit 5a64424

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

resources/lib/modules/updates.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,11 @@ def set_release_channel(self, listItem):
319319
del(self.struct['update']['settings']['Build']['hidden'])
320320

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

326328

327329
@log.log_function()

0 commit comments

Comments
 (0)