mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -04:00
USBMS: Move windows sort drives before checks for main. Should fix a bug detecting iriver story.
This commit is contained in:
parent
34ed17519b
commit
11427001a3
@ -13,7 +13,7 @@ class IRIVER_STORY(USBMS):
|
|||||||
name = 'Iriver Story Device Interface'
|
name = 'Iriver Story Device Interface'
|
||||||
gui_name = 'Iriver Story'
|
gui_name = 'Iriver Story'
|
||||||
description = _('Communicate with the Iriver Story reader.')
|
description = _('Communicate with the Iriver Story reader.')
|
||||||
author = _('Kovid Goyal')
|
author = 'Kovid Goyal'
|
||||||
supported_platforms = ['windows', 'osx', 'linux']
|
supported_platforms = ['windows', 'osx', 'linux']
|
||||||
|
|
||||||
# Ordered list of supported formats
|
# Ordered list of supported formats
|
||||||
|
@ -302,13 +302,13 @@ class Device(DeviceConfig, DevicePlugin):
|
|||||||
drives['main'] = drives.pop('carda')
|
drives['main'] = drives.pop('carda')
|
||||||
|
|
||||||
drives = self.windows_open_callback(drives)
|
drives = self.windows_open_callback(drives)
|
||||||
|
drives = self.windows_sort_drives(drives)
|
||||||
|
|
||||||
if drives.get('main', None) is None:
|
if drives.get('main', None) is None:
|
||||||
raise DeviceError(
|
raise DeviceError(
|
||||||
_('Unable to detect the %s disk drive. Try rebooting.') %
|
_('Unable to detect the %s disk drive. Try rebooting.') %
|
||||||
self.__class__.__name__)
|
self.__class__.__name__)
|
||||||
|
|
||||||
drives = self.windows_sort_drives(drives)
|
|
||||||
self._main_prefix = drives.get('main')
|
self._main_prefix = drives.get('main')
|
||||||
self._card_a_prefix = drives.get('carda', None)
|
self._card_a_prefix = drives.get('carda', None)
|
||||||
self._card_b_prefix = drives.get('cardb', None)
|
self._card_b_prefix = drives.get('cardb', None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user