mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 15:43:37 +02:00
When a new plugin is added to calibre, add its icon (if any) to the second toolbar instead of the main one, by default (the user can change this during the plugin add process and afterwards)
This commit is contained in:
parent
785c357da2
commit
63c0f96795
1 changed files with 3 additions and 0 deletions
|
|
@ -39,6 +39,9 @@ def __init__(self, parent, plugin, locations):
|
|||
self._locations_list.setSizePolicy(sizePolicy)
|
||||
for key, text in locations:
|
||||
self._locations_list.addItem(text)
|
||||
if key in {'toolbar-child',}:
|
||||
self._locations_list.item(self._locations_list.count()-1
|
||||
).setSelected(True)
|
||||
self._layout.addWidget(self._locations_list)
|
||||
|
||||
self._footer_label = QLabel(
|
||||
|
|
|
|||
Loading…
Reference in a new issue