mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1055129 (Xoom MTP 'Send to Main' send to SDCARD)
This commit is contained in:
parent
761cb5509c
commit
50e9e1f768
@ -290,6 +290,8 @@ class MTP_DEVICE(MTPDeviceBase):
|
|||||||
raise BlacklistedDevice(
|
raise BlacklistedDevice(
|
||||||
'The %s device has been blacklisted by the user'%(connected_device,))
|
'The %s device has been blacklisted by the user'%(connected_device,))
|
||||||
|
|
||||||
|
storage.sort(key=lambda x:x.get('id', 'zzzzz'))
|
||||||
|
|
||||||
self._main_id = storage[0]['id']
|
self._main_id = storage[0]['id']
|
||||||
if len(storage) > 1:
|
if len(storage) > 1:
|
||||||
self._carda_id = storage[1]['id']
|
self._carda_id = storage[1]['id']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user