mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
f13c7f96b4
commit
e6a1f92f89
@ -14,10 +14,12 @@ class EditCollectionsAction(InterfaceAction):
|
||||
_('Manage the collections on this device'), None)
|
||||
dont_add_to = frozenset(['toolbar', 'context-menu'])
|
||||
|
||||
def genesis(self):
|
||||
self.qaction.triggered.connect(self.edit_collections)
|
||||
|
||||
def location_selected(self, loc):
|
||||
enabled = loc != 'library'
|
||||
self.qaction.setEnabled(enabled)
|
||||
self.qaction.triggered.connect(self.edit_collections)
|
||||
|
||||
def edit_collections(self, *args):
|
||||
oncard = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user