diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-12-31 16:39:40 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-12-31 16:39:40 +0000 |
| commit | 672bbfc3e8a1d063ad3d96be1711bddf5ca66249 (patch) | |
| tree | e9e9662b09e5c9a30b16c6360f7c2a85eb486ed2 /lib/python | |
| parent | 3ac169fb6f8a000495a010fc37be4b981fa57dae (diff) | |
| download | enigma2-672bbfc3e8a1d063ad3d96be1711bddf5ca66249.tar.gz enigma2-672bbfc3e8a1d063ad3d96be1711bddf5ca66249.zip | |
do not show timeshift state when timeshift is not running
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Screens/InfoBarGenerics.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py index 57194791..c8c9f30d 100644 --- a/lib/python/Screens/InfoBarGenerics.py +++ b/lib/python/Screens/InfoBarGenerics.py @@ -860,15 +860,15 @@ class InfoBarSeek: from Screens.PVRState import PVRState, TimeshiftState class InfoBarPVRState: - def __init__(self, screen=PVRState, show_always=False): - self.show_always = show_always + def __init__(self, screen=PVRState, show_always_in_timeshift=False): + self.show_always_in_timeshift = show_always_in_timeshift self.onPlayStateChanged.append(self.__playStateChanged) self.pvrStateDialog = self.session.instantiateDialog(screen) self.onShow.append(self.__mayShow) self.onHide.append(self.pvrStateDialog.hide) - + def __mayShow(self): - if self.execing and (self.show_always or self.seekstate != self.SEEK_STATE_PLAY): + if self.execing and ((self.show_always_in_timeshift and self.timeshift_enabled) or self.seekstate != self.SEEK_STATE_PLAY): self.pvrStateDialog.show() def __playStateChanged(self, state): @@ -878,7 +878,7 @@ class InfoBarPVRState: class InfoBarTimeshiftState(InfoBarPVRState): def __init__(self): - InfoBarPVRState.__init__(self, screen=TimeshiftState, show_always=True) + InfoBarPVRState.__init__(self, screen=TimeshiftState, show_always_in_timeshift=True) class InfoBarShowMovies: |
