View Single Post
Old 12-27-2021, 05:29 PM   #258
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,499
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Yes, the bulk metadata edit fixes it.

I tried making this custom AC module, but it gave me an error:

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()
Looking at calibre's code I think it should be
Code:
gui.current_db().data.refresh()
Alternatively, try
Code:
gui.refresh_all()
From what I see this method refreshes all the various bits of calibre including the tag browser, the database, and the gui. It also does a resort.
chaley is offline   Reply With Quote