X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FScreens%2FMessageBox.py;h=51dd2fb4849ee60d5f947d8120a69b43803ce926;hb=6c2d3fc303542b7f77f4350974acf781a1b91c30;hp=f13e14b5ef0405a43643db122d030174f55892e8;hpb=89cfe350d37c0579faa522ac8da90e5d915a5f06;p=vuplus_dvbapp diff --git a/lib/python/Screens/MessageBox.py b/lib/python/Screens/MessageBox.py index f13e14b..51dd2fb 100644 --- a/lib/python/Screens/MessageBox.py +++ b/lib/python/Screens/MessageBox.py @@ -24,11 +24,11 @@ class MessageBox(Screen): self.list = [] if type != self.TYPE_ERROR: - self.onShown.append(self["ErrorPixmap"].hideWidget) - elif type != self.TYPE_YESNO: - self.onShown.append(self["QuestionPixmap"].hideWidget) - elif type != self.TYPE_INFO: - self.onShown.append(self["InfoPixmap"].hideWidget) + self["ErrorPixmap"].hide() + if type != self.TYPE_YESNO: + self["QuestionPixmap"].hide() + if type != self.TYPE_INFO: + self["InfoPixmap"].hide() if type == self.TYPE_YESNO: self.list = [ (_("yes"), 0), (_("no"), 1) ]