mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-04 10:13:11 +02:00
Fix call to device_context_menu in preferences by removing a parameter. Fix other call site in device
This commit is contained in:
parent
4751389672
commit
fec87198fb
2 changed files with 3 additions and 5 deletions
|
|
@ -706,7 +706,7 @@ def device_job_exception(self, job):
|
|||
|
||||
# Device connected {{{
|
||||
|
||||
def set_device_menu_items_state(self, connected, device_kind):
|
||||
def set_device_menu_items_state(self, connected):
|
||||
if connected:
|
||||
self._sync_menu.connect_to_folder_action.setEnabled(False)
|
||||
self._sync_menu.connect_to_itunes_action.setEnabled(False)
|
||||
|
|
@ -726,7 +726,7 @@ def device_detected(self, connected, device_kind):
|
|||
'''
|
||||
Called when a device is connected to the computer.
|
||||
'''
|
||||
self.set_device_menu_items_state(connected, device_kind)
|
||||
self.set_device_menu_items_state(connected)
|
||||
if connected:
|
||||
self.device_manager.get_device_information(\
|
||||
Dispatcher(self.info_read))
|
||||
|
|
|
|||
|
|
@ -410,9 +410,7 @@ def do_config(self, *args):
|
|||
self.tags_view.set_new_model() # in case columns changed
|
||||
self.tags_view.recount()
|
||||
self.create_device_menu()
|
||||
self.set_device_menu_items_state(bool(self.device_connected),
|
||||
self.device_connected == 'folder')
|
||||
|
||||
self.set_device_menu_items_state(bool(self.device_connected))
|
||||
if not patheq(self.library_path, d.database_location):
|
||||
newloc = d.database_location
|
||||
move_library(self.library_path, newloc, self,
|
||||
|
|
|
|||
Loading…
Reference in a new issue