Thread: good think
View Single Post
Old 08-06-2022, 10:32 AM   #8
Fynjisx
Connoisseur
Fynjisx began at the beginning.
 
Posts: 91
Karma: 10
Join Date: Jul 2022
Location: Greenland
Device: xiaomi
Quote:
Originally Posted by ownedbycats View Post
A custom module. I use it to re-sort books at the end of a chain.

Code:
from calibre_plugins.action_chains.actions.base import ChainAction

class RefreshAction(ChainAction):

    name = 'Refresh View'

    def run(self, gui, settings, chain_loop):
        gui.current_view().resort()
where is this code written? Is there a manual for writing code?
Fynjisx is offline   Reply With Quote