fix minor error with setting the active item on the main page after a fresh install

This commit is contained in:
Erik Kristensen 2010-10-22 22:06:20 -04:00
parent 4dc1297356
commit 8ef9f38966
1 changed files with 7 additions and 7 deletions

View File

@ -392,10 +392,10 @@ class MythBoxeeMainUIUpdater(MythBoxeeReactor, MythBoxeeLogger):
self.log("def(MythBoxeeMainUIUpdater.Run): No Change")
## Put focus on last selected item
itemId = int(self.config.GetValue("CurrentShowItemID"))
print itemId
if itemId and itemId != 0:
mc.GetWindow(14001).GetList(1030).SetFocusedItem(itemId)
if self.config.GetValue("CurrentShowItemID"):
itemId = int(self.config.GetValue("CurrentShowItemID"))
if itemId and itemId != 0:
mc.GetWindow(14001).GetList(1030).SetFocusedItem(itemId)
self.config.Reset("loadingmain")
self._sleepPeriod = 10
@ -419,9 +419,9 @@ class MythBoxeeMainUIUpdater(MythBoxeeReactor, MythBoxeeLogger):
mc.GetWindow(14001).GetList(1030).SetItems(items)
## Put focus on last selected item
itemId = int(self.config.GetValue("CurrentShowItemID"))
if itemId and itemId != 0:
mc.GetWindow(14001).GetList(1030).SetFocusedItem(itemId)
#itemId = int(self.config.GetValue("CurrentShowItemID"))
#if itemId and itemId != 0:
# mc.GetWindow(14001).GetList(1030).SetFocusedItem(itemId)
if len(self.titles) > 0:
self.config.Reset("loadingmain")