eSlick driver: Fix swapped drives in windows

This commit is contained in:
Kovid Goyal 2009-10-19 16:25:07 -06:00
parent 220b49f1d7
commit 5d2ed7d240

View File

@ -36,4 +36,12 @@ class ESLICK(USBMS):
SUPPORTS_SUB_DIRS = True
def windows_sort_drives(self, drives):
main = drives.get('main', None)
card = drives.get('carda', None)
if card and main and card < main:
drives['main'] = card
drives['carda'] = main
return drives