Skip to content

Commit

Permalink
sort services for All
Browse files Browse the repository at this point in the history
  • Loading branch information
ims committed Feb 3, 2015
1 parent 6d7cd9d commit 89194b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions plugin/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,11 @@ def __init__(self, session, plugin_path, services, curservice=None, bouquetname=

def init(self):
# fill ItemList with services from current bouquet:
for service in self.services:
for service in self.services:
self.ServicesList.append((service.getServiceName(), str(service)))
self.lenServicesList = len(self.ServicesList)
if not self.bouquetname:
self.ServicesList.sort()
# fill self.providers list from lamedb:
self.getProviders()

Expand Down Expand Up @@ -966,7 +968,7 @@ def __init__(self, session, plugin_path):
self["key_yellow"] = Label(_("Swap Dirs"))
self["key_blue"] = Label(_("Same Dirs"))

self["statusbar"] = Label("ims (c) 2014, v0.50, %s" % getMemory(7))
self["statusbar"] = Label("ims (c) 2014, v0.51, %s" % getMemory(7))
self["actions"] = ActionMap(["SetupActions", "ColorActions"],
{
"green": self.save,
Expand Down Expand Up @@ -1178,7 +1180,7 @@ def closed(ret=False):
def getBouquetServices(bouquet):
services = [ ]
Servicelist = eServiceCenter.getInstance().list(bouquet)
if not Servicelist is None:
if Servicelist:
while True:
service = Servicelist.getNext()
if not service.valid(): #check if end of list
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pkg = 'Extensions.SetPicon'
setup (name = 'enigma2-plugin-extensions-setpicon',
version = '0.50',
version = '0.51',
description = 'assignment picons for services',
packages = [pkg],
package_dir = {pkg: 'plugin'},
Expand Down

0 comments on commit 89194b1

Please sign in to comment.