mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -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()
|
tweaks = read_tweaks()
|
||||||
|
|
||||||
def reset_tweaks_to_default():
|
def reset_tweaks_to_default():
|
||||||
global tweaks
|
|
||||||
default_tweaks = P('default_tweaks.py', data=True,
|
default_tweaks = P('default_tweaks.py', data=True,
|
||||||
allow_user_override=False)
|
allow_user_override=False)
|
||||||
dl, dg = {}, {}
|
dl, dg = {}, {}
|
||||||
exec default_tweaks in dg, dl
|
exec default_tweaks in dg, dl
|
||||||
tweaks = dl
|
tweaks.clear()
|
||||||
|
tweaks.update(dl)
|
||||||
|
|
||||||
class Tweak(object):
|
class Tweak(object):
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user