mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
32aca79f74
commit
0710e436c9
@ -372,7 +372,7 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
||||
d = ChoosePluginToolbarsDialog(self, plugin_action, allowed_locations)
|
||||
if d.exec_() == d.Accepted:
|
||||
for key, text in d.selected_locations():
|
||||
installed_actions = list(gprefs['action-layout-'+key])
|
||||
installed_actions = list(gprefs.get('action-layout-'+key, []))
|
||||
installed_actions.append(plugin_action.name)
|
||||
gprefs['action-layout-'+key] = tuple(installed_actions)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user