mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Make shortcuts config file a variable
This commit is contained in:
parent
224f03e1fd
commit
b777803473
@ -71,10 +71,10 @@ def finalize(shortcuts, custom_keys_map={}): # {{{
|
||||
|
||||
class Manager(QObject): # {{{
|
||||
|
||||
def __init__(self, parent=None):
|
||||
def __init__(self, parent=None, config_name='shortcuts/main'):
|
||||
QObject.__init__(self, parent)
|
||||
|
||||
self.config = JSONConfig('shortcuts/main')
|
||||
self.config = JSONConfig(config_name)
|
||||
self.shortcuts = OrderedDict()
|
||||
self.keys_map = {}
|
||||
self.groups = {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user