Thread: good think
View Single Post
Old 08-06-2022, 10:20 AM   #7
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,307
Karma: 79528341
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by Wiggo View Post
May I ask what the refresh view is for?
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()
Quote:
Originally Posted by Fynjisx View Post
what is this file? can you make it yourself or is it some kind of standard?
It's an Action Chain. I built the chain in the plugin and then exported it:

Click image for larger version

Name:	2022-08-06 11_18_18-Chains Dialog.png
Views:	484
Size:	62.8 KB
ID:	195656
ownedbycats is offline   Reply With Quote