if self["list"].canDescent(): # isDir
self["list"].descent()
else:
- self["pixmap"].instance.setPixmapFromFile(self["list"].getSelection())
+ self["pixmap"].instance.setPixmapFromFile(self["list"].getFilename())
def keyNumberGlobal(self, number):
print "pressed", number
session.open(FileManager)
def Plugins(**kwargs):
- return PluginDescriptor(name="File-Manager", description="Let's you view/edit files in your Dreambox", where = PluginDescriptor.WHERE_PLUGINMENU, fnc=main)
+ return [PluginDescriptor(name="File-Manager", description="Let's you view/edit files in your Dreambox", where = PluginDescriptor.WHERE_PLUGINMENU, fnc=main),
+ PluginDescriptor(name="File-Manager", description="Let's you view/edit files in your Dreambox", where = PluginDescriptor.WHERE_EXTENSIONSMENU, fnc=main)]