git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix 'ok' in FileManager for files a bit
[enigma2.git]
/
lib
/
python
/
Plugins
/
Extensions
/
FileManager
/
plugin.py
diff --git
a/lib/python/Plugins/Extensions/FileManager/plugin.py
b/lib/python/Plugins/Extensions/FileManager/plugin.py
index a17e631ce59e611fae0a2096aff6f522cebead8b..11f75a2b0847856d4440522deab93f73b74d114b 100644
(file)
--- a/
lib/python/Plugins/Extensions/FileManager/plugin.py
+++ b/
lib/python/Plugins/Extensions/FileManager/plugin.py
@@
-22,7
+22,7
@@
class FileManager(Screen):
self.skin = FileManager.skin
Screen.__init__(self, session)
self.skin = FileManager.skin
Screen.__init__(self, session)
- self["list"] = FileList("/", matchingPattern = "^.*\.(png|avi|mp3|mpeg|ts)")
+ self["list"] = FileList("/", matchingPattern = "^.*\.(png|avi|mp3|mpeg|ts)"
, useServiceRef = True
)
self["pixmap"] = Pixmap()
#self["text"] = Input("1234", maxSize=True, type=Input.NUMBER)
self["pixmap"] = Pixmap()
#self["text"] = Input("1234", maxSize=True, type=Input.NUMBER)
@@
-52,11
+52,11
@@
class FileManager(Screen):
self["text"].right()
def ok(self):
self["text"].right()
def ok(self):
- selection = self["list"].getSelection()
- if sel
ection[1] == True
: # isDir
- self["list"].
changeDir(selection[0]
)
+
+ if sel
f["list"].canDescent()
: # isDir
+ self["list"].
descent(
)
else:
else:
- self["pixmap"].instance.setPixmapFromFile(sel
ection[0]
)
+ self["pixmap"].instance.setPixmapFromFile(sel
f["list"].getFilename()
)
def keyNumberGlobal(self, number):
print "pressed", number
def keyNumberGlobal(self, number):
print "pressed", number