dont send a diseqc switch command when simple rotor mode is used
[enigma2.git] / lib / python / Components / FileList.py
index 3091436fda0aa21d2cf4812a5b61e92f7820cc38..09756e3ce9281cafa4c06af0264b9f6427e4198d 100644 (file)
@@ -190,3 +190,16 @@ class FileList(MenuList, HTMLComponent, GUIComponent):
 
        def postWidgetCreate(self, instance):
                instance.setContent(self.l)
+
+       def execBegin(self):
+               harddiskmanager.on_partition_list_change.append(self.partitionListChanged)
+               
+       def execEnd(self):
+               harddiskmanager.on_partition_list_change.remove(self.partitionListChanged)
+
+       def refresh(self):
+               self.changeDir(self.current_directory, self.getFilename())
+
+       def partitionListChanged(self, action, device):
+               if self.current_directory is None:
+                       self.refresh()