mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-19 02:53:12 +02:00
...
This commit is contained in:
parent
32aca79f74
commit
0710e436c9
1 changed files with 1 additions and 1 deletions
|
|
@ -372,7 +372,7 @@ def check_for_add_to_toolbars(self, plugin):
|
|||
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…
Reference in a new issue