mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -04:00
Clean away existing functions when loading preferences to avoid problems when changing libraries
This commit is contained in:
parent
13fd31dd87
commit
59078f3b96
@ -460,6 +460,7 @@ class UserFunction(FormatterUserFunction):
|
||||
return cls
|
||||
|
||||
def load_user_template_functions(funcs):
|
||||
formatter_functions.reset_to_builtins()
|
||||
for func in funcs:
|
||||
try:
|
||||
cls = compile_user_function(*func)
|
||||
|
Loading…
x
Reference in New Issue
Block a user