From c03edd7075562be983832db253d43922bd534e50 Mon Sep 17 00:00:00 2001 From: iMaxxx Date: Sun, 29 Dec 2013 22:40:15 +0100 Subject: [PATCH] Vote for active Picon repo enabled --- .../Plugins/Extensions/MyMetrix/store_Packages_Browse.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/usr/lib/enigma2/python/Plugins/Extensions/MyMetrix/store_Packages_Browse.py b/usr/lib/enigma2/python/Plugins/Extensions/MyMetrix/store_Packages_Browse.py index 33bfcee..365cb02 100644 --- a/usr/lib/enigma2/python/Plugins/Extensions/MyMetrix/store_Packages_Browse.py +++ b/usr/lib/enigma2/python/Plugins/Extensions/MyMetrix/store_Packages_Browse.py @@ -312,7 +312,11 @@ def updateMeta(self): self["greenbutton"].setText(_("Reinstall")) else: - self["yellowbutton"].setText("") + type = self["menu"].l.getCurrentSelection()[0][7] + if type == "piconrepo" and config.plugins.MyMetrix.XPiconsRepository.value == self.currentid: + self["yellowbutton"].setText("Vote") + else: + self["yellowbutton"].setText("") self["redbutton"].setText("") if self.currenttype == "piconrepo": self["greenbutton"].setText(_("Apply")) @@ -392,7 +396,8 @@ def exit(self): def openRating(self): isinstalled = self["menu"].l.getCurrentSelection()[0][15] - if isinstalled: + type = self["menu"].l.getCurrentSelection()[0][7] + if isinstalled or type == "piconrepo" and config.plugins.MyMetrix.XPiconsRepository.value == self.currentid: self.session.open(store_SubmitRating.OpenScreen,self.currentid,self.currentgroup,str(self["menu"].l.getCurrentSelection()[0][1])) self.getCatalog = True self.getEntry = True