mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
reset_tweaks_to_default and with Tweak not co-operating
This commit is contained in:
parent
7214608282
commit
a4e0eeb854
@ -471,12 +471,12 @@ def write_tweaks(raw):
|
||||
tweaks = read_tweaks()
|
||||
|
||||
def reset_tweaks_to_default():
|
||||
global tweaks
|
||||
default_tweaks = P('default_tweaks.py', data=True,
|
||||
allow_user_override=False)
|
||||
dl, dg = {}, {}
|
||||
exec default_tweaks in dg, dl
|
||||
tweaks = dl
|
||||
tweaks.clear()
|
||||
tweaks.update(dl)
|
||||
|
||||
class Tweak(object):
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user