X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/8b5176ab8d8a334dfee75cfbda878240e2501823..f965acae25306290600029c8c402b9429ea2e196:/lib/python/Screens/TaskView.py diff --git a/lib/python/Screens/TaskView.py b/lib/python/Screens/TaskView.py index 299c0fa2..790e9bc6 100644 --- a/lib/python/Screens/TaskView.py +++ b/lib/python/Screens/TaskView.py @@ -1,12 +1,14 @@ from Screen import Screen +from InfoBarGenerics import InfoBarNotifications -class JobView(Screen): +class JobView(InfoBarNotifications, Screen): def __init__(self, session, job, cancelable = True, close_on_finish = False): from Components.Sources.StaticText import StaticText from Components.Sources.Progress import Progress from Components.Sources.Boolean import Boolean from Components.ActionMap import ActionMap Screen.__init__(self, session) + InfoBarNotifications.__init__(self) self.job = job self.close_on_finish = close_on_finish self.cancelable = cancelable @@ -31,7 +33,8 @@ class JobView(Screen): self.state_changed() def windowHide(self): - self.job.state_changed.remove(self.state_changed) + if len(self.job.state_changed) > 0: + self.job.state_changed.remove(self.state_changed) def state_changed(self): j = self.job