aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/Screen.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/python/Screens/Screen.py b/lib/python/Screens/Screen.py
index 78a88ad8..989f90a9 100644
--- a/lib/python/Screens/Screen.py
+++ b/lib/python/Screens/Screen.py
@@ -14,6 +14,7 @@ class Screen(dict, HTMLSkin, GUISkin):
GUISkin.__init__(self)
self.onClose = [ ]
+ self.onFirstExecBegin = [ ]
self.onExecBegin = [ ]
self.onShown = [ ]
@@ -31,7 +32,10 @@ class Screen(dict, HTMLSkin, GUISkin):
def execBegin(self):
self.active_components = [ ]
- for x in self.onExecBegin:
+
+ single = self.onFirstExecBegin
+ self.onFirstExecBegin = []
+ for x in self.onExecBegin + single:
x()
if self.session.current_dialog != self:
return