plugins can appear in the extensions menu now
[enigma2.git] / lib / python / Plugins / Extensions / FileManager / plugin.py
index e9dccbd6309d7883639924b3f81a912a599f3e76..d2b197193baa5d0a54856b3b216c7e9180ed3d2a 100644 (file)
@@ -56,7 +56,7 @@ class FileManager(Screen):
                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
@@ -66,4 +66,5 @@ def main(session, **kwargs):
        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)]