git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix screens without a module
[enigma2.git]
/
Navigation.py
diff --git
a/Navigation.py
b/Navigation.py
index 751aca897d3c7a4638eb0a03748d914a513557c1..d8a98b12e59aad865c1b8ab0efa2ee4549c944fc 100644
(file)
--- a/
Navigation.py
+++ b/
Navigation.py
@@
-21,6
+21,7
@@
class Navigation:
self.event = [ ]
self.currentlyPlayingService = None
self.currentlyPlayingServiceReference = None
self.event = [ ]
self.currentlyPlayingService = None
self.currentlyPlayingServiceReference = None
+ self.lastServiceRef = None
self.RecordTimer = RecordTimer.RecordTimer()
self.RecordTimer = RecordTimer.RecordTimer()
@@
-29,6
+30,7
@@
class Navigation:
x(i)
def playService(self, ref):
x(i)
def playService(self, ref):
+ self.lastServiceRef = self.currentlyPlayingServiceReference
self.currentlyPlayingServiceReference = None
if ref is None:
self.stopService()
self.currentlyPlayingServiceReference = None
if ref is None:
self.stopService()
@@
-39,6
+41,9
@@
class Navigation:
return 0
return 1
return 0
return 1
+ def zapLast(self):
+ return self.playService(self.lastServiceRef)
+
def getCurrentlyPlayingServiceReference(self):
return self.currentlyPlayingServiceReference
def getCurrentlyPlayingServiceReference(self):
return self.currentlyPlayingServiceReference