+ self.onLayoutFinish.append(self.layoutFinished)
+
+ def layoutFinished(self):
+ tmp = config.skin.primary_skin.value.find('/skin.xml')
+ if tmp != -1:
+ tmp = config.skin.primary_skin.value[:tmp]
+ idx = 0
+ for skin in self.skinlist:
+ if skin == tmp:
+ break
+ idx += 1
+ if idx < len(self.skinlist):
+ self["SkinList"].moveToIndex(idx)
+ self.loadPreview()