From 53d75aba6f4130e9dbc03ad610e6b8af6792d399 Mon Sep 17 00:00:00 2001 From: Ian Leonard Date: Sat, 24 Jun 2023 01:40:23 +0000 Subject: [PATCH] updates: use set_custom_channel in releasechannel refresh Signed-off-by: Ian Leonard --- resources/lib/modules/updates.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/lib/modules/updates.py b/resources/lib/modules/updates.py index dbcb87a3e..3425a1bc4 100644 --- a/resources/lib/modules/updates.py +++ b/resources/lib/modules/updates.py @@ -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()