Skip to content

Commit

Permalink
[menu] avoid ambiguous variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Huevos committed Sep 22, 2023
1 parent 38b34ba commit 230fce6
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions AutoBouquetsMaker/src/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ def __init__(self, session):
print('[ABM-menu][__init__] self.init_scheduletime', self.init_scheduletime)

self.onChangedEntry = []
l = []

self["list"] = List(l)
self["list"] = List([])

self["setupActions"] = ActionMap(["ColorActions", "SetupActions", "MenuActions"],
{
Expand All @@ -71,23 +70,23 @@ def __init__(self, session):
self.onFirstExecBegin.append(self.openSetup)

def createsetup(self):
l = []
l.append(self.buildListEntry(_("Configure"), "configure.png"))
l.append(self.buildListEntry(_("Providers"), "opentv.png"))
setupList = []
setupList.append(self.buildListEntry(_("Configure"), "configure.png"))
setupList.append(self.buildListEntry(_("Providers"), "opentv.png"))
if len(config.autobouquetsmaker.providers.getValue().split('|')) > 1:
l.append(self.buildListEntry(_("Providers order"), "reorder.png"))
setupList.append(self.buildListEntry(_("Providers order"), "reorder.png"))
if len(config.autobouquetsmaker.providers.getValue().split('|')) > 0:
l.append(self.buildListEntry(_("Hide sections"), "reorder.png"))
setupList.append(self.buildListEntry(_("Hide sections"), "reorder.png"))
if not config.autobouquetsmaker.keepallbouquets.value:
l.append(self.buildListEntry(_("Keep bouquets"), "reorder.png"))
l.append(self.buildListEntry(_("Start scan"), "download.png"))
l.append(self.buildListEntry(_("Delete ABM bouquets"), "reorder.png"))
l.append(self.buildListEntry(_("Update provider files"), "reorder.png"))
setupList.append(self.buildListEntry(_("Keep bouquets"), "reorder.png"))
setupList.append(self.buildListEntry(_("Start scan"), "download.png"))
setupList.append(self.buildListEntry(_("Delete ABM bouquets"), "reorder.png"))
setupList.append(self.buildListEntry(_("Update provider files"), "reorder.png"))
if config.autobouquetsmaker.level.getValue() == "expert" and config.autobouquetsmaker.frequencyfinder.getValue():
l.append(self.buildListEntry(_("DVB-T frequency finder"), "reorder.png"))
l.append(self.buildListEntry(_("Show log"), "dbinfo.png"))
l.append(self.buildListEntry(_("About"), "about.png"))
self["list"].list = l
setupList.append(self.buildListEntry(_("DVB-T frequency finder"), "reorder.png"))
setupList.append(self.buildListEntry(_("Show log"), "dbinfo.png"))
setupList.append(self.buildListEntry(_("About"), "about.png"))
self["list"].list = setupList

# for summary:
def changedEntry(self):
Expand Down

0 comments on commit 230fce6

Please sign in to comment.