its a bad idea to open a screen at every place..
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 24 Jun 2008 19:58:03 +0000 (19:58 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 24 Jun 2008 19:58:03 +0000 (19:58 +0000)
i fix this later..

lib/python/Plugins/Extensions/MediaScanner/plugin.py

index d2efea5..c5f6043 100644 (file)
@@ -57,11 +57,12 @@ def menuHook(menuid):
 global_session = None
 
 def partitionListChanged(action, device):
 global_session = None
 
 def partitionListChanged(action, device):
-       if action == 'add' and device.is_hotplug:
-               print "mountpoint", device.mountpoint
-               print "description", device.description
-               print "force_mounted", device.force_mounted
-               mountpoint_choosen((device.description, device.mountpoint, global_session))
+       pass
+#      if action == 'add' and device.is_hotplug:
+#              print "mountpoint", device.mountpoint
+#              print "description", device.description
+#              print "force_mounted", device.force_mounted
+#              mountpoint_choosen((device.description, device.mountpoint, global_session))
 
 def sessionstart(reason, session):
        global global_session
 
 def sessionstart(reason, session):
        global global_session