X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/7e5b8dd9905ecfc6491ff035bcc81ac0a37279d0..fb412ff32c7938649c72d55eed3f5c8ccb5e0a99:/lib/python/Screens/Scart.py diff --git a/lib/python/Screens/Scart.py b/lib/python/Screens/Scart.py index cae46b23..3bb2ca9c 100644 --- a/lib/python/Screens/Scart.py +++ b/lib/python/Screens/Scart.py @@ -13,11 +13,13 @@ class Scart(Screen): self.avswitch.setInput("SCART") - self.onShown.append(self.showMessageBox) + self.onExecBegin.append(self.showMessageBox) def showMessageBox(self): + # only open messagebox on first execBegin + self.onExecBegin.remove(self.showMessageBox) self.session.openWithCallback(self.switchToTV, MessageBox, _("If you see this, something is wrong with\nyour scart connection. Press OK to return."), MessageBox.TYPE_ERROR) - def switchToTV(self, val): + def switchToTV(self, *val): self.avswitch.setInput("ENCODER") self.close()