mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 17:34:04 +02:00
Fix changed shortcuts not being applied till tweak book is restarted
This commit is contained in:
parent
4087a7004f
commit
93ba080098
2 changed files with 2 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ def finalize(shortcuts, custom_keys_map={}): # {{{
|
|||
Resolve conflicts and assign keys to every action in shorcuts, which must
|
||||
be a OrderedDict. User specified mappings of unique names to keys (as a
|
||||
list of strings) should be passed in in custom_keys_map. Return a mapping
|
||||
of unique names to resolved keys. Also sets the set_to_defaul member
|
||||
of unique names to resolved keys. Also sets the set_to_default member
|
||||
correctly for each shortcut.
|
||||
'''
|
||||
seen, keys_map = {}, {}
|
||||
|
|
|
|||
|
|
@ -101,6 +101,7 @@ def preferences(self):
|
|||
if p.exec_() == p.Accepted:
|
||||
for ed in editors.itervalues():
|
||||
ed.apply_settings()
|
||||
self.gui.keyboard.finalize()
|
||||
|
||||
def mark_requested(self, name, action):
|
||||
self.commit_dirty_opf()
|
||||
|
|
|
|||
Loading…
Reference in a new issue