Skip to content

Commit 4d5e4a7

Browse files
committed
don't use setTitle for MessageBox
1 parent 2e21a98 commit 4d5e4a7

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

usr/lib/enigma2/python/Plugins/Extensions/MyMetrixLite/OtherSettingsView.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def checkEHDtested(self):
212212

213213
def test(self):
214214
plustext = ""
215-
#check hbbtv plugin - is sometimes or with some boxes not compatible with EHD-skin!
215+
# check hbbtv plugin - is sometimes or with some boxes not compatible with EHD-skin!
216216
if exists("/usr/lib/enigma2/python/Plugins/Extensions/HbbTV/plugin.pyo"):
217217
plustext = _("You have the'HbbTV Plugin' installed.\n")
218218
if plustext:
@@ -285,8 +285,7 @@ def checkNetworkState(self, str, retval, extra_args):
285285
self.session.open(MessageBox, _("A background update check is in progress, please wait a few minutes and try again."), type=MessageBox.TYPE_INFO, timeout=10, close_on_any_key=True)
286286
self.resetEHD()
287287
elif not str:
288-
self.feedscheck = self.session.open(MessageBox, _('Please wait whilst feeds state is checked.'), MessageBox.TYPE_INFO, enable_input=False)
289-
self.feedscheck.setTitle(_('Checking Feeds'))
288+
self.feedscheck = self.session.open(MessageBox, _('Please wait whilst feeds state is checked.'), MessageBox.TYPE_INFO, enable_input=False, windowTitle=_("Checking Feeds"))
290289
cmd1 = "opkg update"
291290
self.CheckConsole = Console()
292291
self.CheckConsole.ePopen(cmd1, self.checkNetworkStateFinished)
@@ -312,8 +311,7 @@ def InstallPackageFailed(self, val):
312311
self.resetEHD()
313312

314313
def doInstall(self, callback, pkgname):
315-
self.message = self.session.open(MessageBox, _("please wait..."), MessageBox.TYPE_INFO, enable_input=False)
316-
self.message.setTitle(_('Installing ...'))
314+
self.message = self.session.open(MessageBox, _("please wait..."), MessageBox.TYPE_INFO, enable_input=False, windowTitle=_("Installing ..."))
317315
self.Console.ePopen('/usr/bin/opkg install ' + pkgname, callback)
318316

319317
def installComplete(self, result, retval=None, extra_args=None):
@@ -344,8 +342,7 @@ def RemovePackage(self, val):
344342
self.doRemove(self.removeComplete, self.service_name)
345343

346344
def doRemove(self, callback, pkgname):
347-
self.message = self.session.open(MessageBox, _("please wait..."), MessageBox.TYPE_INFO, enable_input=False)
348-
self.message.setTitle(_('Removing ...'))
345+
self.message = self.session.open(MessageBox, _("please wait..."), MessageBox.TYPE_INFO, enable_input=False, windowTitle=_("Removing ..."))
349346
self.Console.ePopen('/usr/bin/opkg remove ' + pkgname + ' --force-remove --autoremove', callback)
350347

351348
def removeComplete(self, result=None, retval=None, extra_args=None):
@@ -584,7 +581,7 @@ def getMenuItemList(self):
584581
section = _("mini TV")
585582
list.append(getConfigListEntry(section + tab + sep * (char - len(section) - len(tab)), ))
586583
list.append(getConfigListEntry(tab + _("Show in Channel selection?"), config.usage.use_pig, _("Setting is the same as\n'") + _("Channel list show MiniTV*") + _("'\nin the\n'") + _("Channel selection settings") + "'.", "ENABLED"))
587-
#list.append(getConfigListEntry(tab + _("Show in graphical EPG?"), config.epgselection.graph_pig, _("Setting is the same as\n'") + _("Picture in graphics") + _("'\nin the\n'") + _("GraphicalEPG settings") + "'."))
584+
# list.append(getConfigListEntry(tab + _("Show in graphical EPG?"), config.epgselection.graph_pig, _("Setting is the same as\n'") + _("Picture in graphics") + _("'\nin the\n'") + _("GraphicalEPG settings") + "'."))
588585
list.append(getConfigListEntry(tab + _("Show in Movie Center?"), config.plugins.MyMetrixLiteOther.movielist_pig, _("helptext"), "ENABLED"))
589586
list.append(getConfigListEntry(tab + _("Show in EMC?"), config.plugins.MyMetrixLiteOther.emc_pig, _("helptext"), "ENABLED"))
590587
section = _("EMC")

0 commit comments

Comments
 (0)