diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-07-23 19:32:17 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-07-23 19:32:17 +0000 |
| commit | d2b38521b68f84026b19a829ae3f64eeb268fb31 (patch) | |
| tree | ddd2b80c92c8244bae0298f1dca97ec8c580b831 /lib/python/Plugins/SystemPlugins/SkinSelector/plugin.py | |
| parent | 31199ef6b4d897a838ee6dafd964d1c2dcd1820c (diff) | |
| download | enigma2-d2b38521b68f84026b19a829ae3f64eeb268fb31.tar.gz enigma2-d2b38521b68f84026b19a829ae3f64eeb268fb31.zip | |
move selection to currently used skin
Diffstat (limited to 'lib/python/Plugins/SystemPlugins/SkinSelector/plugin.py')
| -rwxr-xr-x | lib/python/Plugins/SystemPlugins/SkinSelector/plugin.py | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/python/Plugins/SystemPlugins/SkinSelector/plugin.py b/lib/python/Plugins/SystemPlugins/SkinSelector/plugin.py index fdb26834..5a130ba1 100755 --- a/lib/python/Plugins/SystemPlugins/SkinSelector/plugin.py +++ b/lib/python/Plugins/SystemPlugins/SkinSelector/plugin.py @@ -9,7 +9,6 @@ from Components.Pixmap import Pixmap from Components.MenuList import MenuList from Plugins.Plugin import PluginDescriptor from Components.config import config -from Components.config import config from os import path, walk @@ -51,7 +50,20 @@ class SkinSelector(Screen): "info": self.info, }, -1) - self.onLayoutFinish.append(self.loadPreview) + 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() def up(self): self["SkinList"].up() |
