From: Christian Weiske Date: Tue, 6 Dec 2011 07:49:39 +0000 (+0100) Subject: move url loading after layout finishing to prevent crashes. X-Git-Tag: v1.0.0~5 X-Git-Url: https://git.cweiske.de/enigma2-curlytx.git/commitdiff_plain/38752d5f0133b64088b4e70680f8c862f73ebd56?hp=9a507c5545f5f127047c76efc4be70cfff82bc21 move url loading after layout finishing to prevent crashes. sometimes the url has been loaded while the window/screen has not been drawn yet, e.g. when the box is slow because several recordings are running --- diff --git a/src/CurlyTx.py b/src/CurlyTx.py index 16d1e31..6ce0efd 100644 --- a/src/CurlyTx.py +++ b/src/CurlyTx.py @@ -70,8 +70,11 @@ class CurlyTx(Screen,HelpableScreen): self.loadHelp() self.loadButtons() + self.onLayoutFinish.append(self.afterLayout) + + def afterLayout(self): + self.setTextFont self.loadUrl(config.plugins.CurlyTx.defaultPage.value) - self.onLayoutFinish.append(self.setTextFont) def loadHelp(self): self.helpList.append((