Dienstag, 5. Juli 2011

Enigma2 LocationBox Patch

I've a small patch which fixes an annoying behaviour of the LocationBox.

If a new LocationBox is opened, on both sides (DirectoryView and
BookmarkView) the first row is selected and the user doesn't know
which on is active.
--- lib\python\Screens\LocationBox.py 2011-02-08 21:37:57.000000000 +0200
+++ lib\python\Screens\LocationBox.py 2011-07-04 17:48:49.000000000 +0200
@@ -177,12 +177,13 @@
  def switchToFileListOnStart(self):
   if self.realBookmarks and self.realBookmarks.value:
    self.currList = "booklist"
    currDir = self["filelist"].current_directory
    if currDir in self.bookmarks:
     self["booklist"].moveToIndex(self.bookmarks.index(currDir))
+   self["filelist"].selectionEnabled(0)
   else:
    self.switchToFileList()
 
  def disableTimer(self):
   self.qs_timer.callback.remove(self.timeout)
Update 19.11.2011:
It seems to be a Skin problem.
If the Skin defines a Cursor-PNG, the problem will occur.
If the Skin only defines a Cursor-Color, it will work as expected.

Update 13.02.2012:
The patch is now in the official DMM images:
Git Commit

Keine Kommentare:

Kommentar veröffentlichen