timer: convert stored messages to UTF-8 when loading
[enigma2.git] / lib / python / Screens / InfoBarGenerics.py
index 2f12d033bf50bb3c23650421b937c63338315a69..499d97232f3a3d5d738a81f9852f98ace2bb7761 100644 (file)
@@ -288,14 +288,15 @@ class InfoBarChannelSelection:
                self.session.execDialog(self.servicelist)
 
        def zapUp(self):
-               if self.servicelist.inBouquet() and self.servicelist.atBegin():
-                       self.servicelist.prevBouquet()
+               if currentConfigSelectionElement(config.usage.quickzap_bouquet_change) == "yes":
+                       if self.servicelist.inBouquet() and self.servicelist.atBegin():
+                               self.servicelist.prevBouquet()
                self.servicelist.moveUp()
                self.servicelist.zap()
                self.doShow()
 
        def zapDown(self):
-               if self.servicelist.inBouquet() and self.servicelist.atEnd():
+               if currentConfigSelectionElement(config.usage.quickzap_bouquet_change) == "yes" and self.servicelist.inBouquet() and self.servicelist.atEnd():
                        self.servicelist.nextBouquet()
                else:
                        self.servicelist.moveDown()
@@ -839,6 +840,16 @@ class InfoBarTimeshift:
                ts = self.getTimeshift()
                if ts is None:
                        return
+               self.session.openWithCallback(self.stopTimeshiftConfirmed, MessageBox, _("Stop Timeshift?"), MessageBox.TYPE_YESNO)
+
+       def stopTimeshiftConfirmed(self, confirmed):
+               if not confirmed:
+                       return
+
+               ts = self.getTimeshift()
+               if ts is None:
+                       return
+
                ts.stopTimeshift()
                self.timeshift_enabled = 0