mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
cleanup sony fix
This commit is contained in:
parent
cf8bb55409
commit
3a7d5c431f
@ -65,8 +65,7 @@ class PRS505(USBMS):
|
|||||||
def windows_filter_pnp_id(self, pnp_id):
|
def windows_filter_pnp_id(self, pnp_id):
|
||||||
return '_LAUNCHER' in pnp_id
|
return '_LAUNCHER' in pnp_id
|
||||||
|
|
||||||
def open(self):
|
def post_open_callback(self):
|
||||||
USBMS.open(self)
|
|
||||||
|
|
||||||
def write_cache(prefix):
|
def write_cache(prefix):
|
||||||
try:
|
try:
|
||||||
@ -90,6 +89,9 @@ class PRS505(USBMS):
|
|||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
# Make sure we don't have the launcher partition
|
||||||
|
# as one of the cards
|
||||||
|
|
||||||
if self._card_a_prefix is not None:
|
if self._card_a_prefix is not None:
|
||||||
if not write_cache(self._card_a_prefix):
|
if not write_cache(self._card_a_prefix):
|
||||||
self._card_a_prefix = None
|
self._card_a_prefix = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user