Quote:
Originally Posted by ownedbycats
Can Device > Update cached metadata on device be added to a chain? I couldn't find it in the Calibre Actions list.
|
The items on the "Device" button aren't standard calibre actions so no, you won't find them.
@capink: if you want to add them as a special case, do
Code:
_('Eject this device'): get_gui().location_manager.unmount_device.emit()
_('Configure this device') ==> get_gui().location_manager.configure_device.emit()
_('Update cached metadata on device'): get_gui().location_manager.update_device_metadata.emit()
It would probably be best to ensure that a device view is active:
Code:
if get_gui().current_view() is not get_gui().library_view: