View Single Post
Old 04-11-2021, 08:50 AM   #515
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,459
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Another topic: while playing with actions today I noticed that some of the template dialogs, for example the Template Scope one, have extra fields related to stored templates, specifically the template name and the documentation. I am changing TemplateDialog to permit you to hide them.

With the changed TemplateDialog I tested this in Action Chains.templates.py and it works. Starting at line 404:
Code:
        TemplateDialog.__init__(self,
                                parent,
                                text,
                                mi=mi,
                                text_is_placeholder=text_is_placeholder,
                                all_functions=self.all_functions,
                                builtin_functions=builtin_functions,
                                global_vars=global_vars)
        self.setup_saved_template_editor(show_buttonbox=not dialog_is_st_editor,
                                         show_doc_and_name=False)
I will let you know when the changes are in calibre source.
chaley is offline   Reply With Quote