View Single Post
Old 05-15-2021, 05:45 AM   #583
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,449
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
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:
chaley is offline   Reply With Quote