mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Change name of disconnect_from_folder to unmount_device
This commit is contained in:
parent
25894632dc
commit
9c75cac5a2
@ -2721,11 +2721,11 @@ class ITUNES_ASYNC(ITUNES):
|
||||
else:
|
||||
return BookList(self.log)
|
||||
|
||||
def disconnect_from_folder(self):
|
||||
def unmount_device(self):
|
||||
'''
|
||||
'''
|
||||
if DEBUG:
|
||||
self.log.info("ITUNES_ASYNC:disconnect_from_folder()")
|
||||
self.log.info("ITUNES_ASYNC:unmount_device()")
|
||||
self.connected = False
|
||||
|
||||
def eject(self):
|
||||
|
@ -66,7 +66,7 @@ class FOLDER_DEVICE(USBMS):
|
||||
detected_device=None):
|
||||
pass
|
||||
|
||||
def disconnect_from_folder(self):
|
||||
def unmount_device(self):
|
||||
self._main_prefix = ''
|
||||
self.is_connected = False
|
||||
|
||||
|
@ -201,10 +201,10 @@ class DeviceManager(Thread): # {{{
|
||||
self.connected_device.eject()
|
||||
self.ejected_devices.add(self.connected_device)
|
||||
self.connected_slot(False, self.connected_device_kind)
|
||||
elif hasattr(self.connected_device, 'disconnect_from_folder'):
|
||||
elif hasattr(self.connected_device, 'unmount_device'):
|
||||
# As we are on the wrong thread, this call must *not* do
|
||||
# anything besides set a flag that the right thread will see.
|
||||
self.connected_device.disconnect_from_folder()
|
||||
self.connected_device.unmount_device()
|
||||
|
||||
def next(self):
|
||||
if not self.jobs.empty():
|
||||
|
Loading…
x
Reference in New Issue
Block a user