fixme: stopService()
[enigma2.git] / lib / python / Screens / Standby.py
index 1b648e5595253ec1128f6335cb551751d8771688..a2c3ded4b33d0858da4346e6ef5ffd63c2fac8d1 100644 (file)
@@ -4,18 +4,21 @@ from Components.ActionMap import ActionMap
 class Standby(Screen):
        def Power(self):
                print "leave standby"
 class Standby(Screen):
        def Power(self):
                print "leave standby"
+               #start last played service
+               self.infobar.servicelist.zap()
                self.close()
 
                self.close()
 
-       def __init__(self, session):
+       def __init__(self, session, infobar):
                Screen.__init__(self, session)
                Screen.__init__(self, session)
-               
+               self.infobar = infobar
                print "enter standby"
 
                self["actions"] = ActionMap( [ "StandbyActions" ],
                {
                        "power": self.Power
                })
                print "enter standby"
 
                self["actions"] = ActionMap( [ "StandbyActions" ],
                {
                        "power": self.Power
                })
-               
+
+               self.session.nav.stopService()
                #stop/pause? playing services
                #switch off avs
                
\ No newline at end of file
                #stop/pause? playing services
                #switch off avs
                
\ No newline at end of file