Code:
from calibre_plugins.action_chains.actions.base import ChainAction
class RefreshAction(ChainAction):
name = 'Refresh GUI'
def run(self, gui, settings, chain):
gui.current_db().refresh()
I tried attaching this to my "switch view manager on VL tab click" chain to refresh a composite column. It gave me an error (LibraryDatabase is not callable). What did I do wrong?