Skip to content

Commit

Permalink
Vote for active Picon repo enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
iMaxxx committed Dec 29, 2013
1 parent 931cbe5 commit c03edd7
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c03edd7

Please sign in to comment.