mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 18:43:39 +02:00
Fix device entry not visible in menubar even when it has been added via Preferences->Toolbars. Fixes #923175 (location manager not accessible from the menubar)
This commit is contained in:
parent
ce3cc5995c
commit
cd85d375f5
1 changed files with 3 additions and 2 deletions
|
|
@ -199,8 +199,9 @@ def __init__(self, location_manager, parent):
|
|||
|
||||
def update_lm_actions(self):
|
||||
for ac in self.added_actions:
|
||||
if ac in self.location_manager.all_actions:
|
||||
ac.setVisible(ac in self.location_manager.available_actions)
|
||||
clone = getattr(ac, 'clone', None)
|
||||
if clone is not None and clone in self.location_manager.all_actions:
|
||||
ac.setVisible(clone in self.location_manager.available_actions)
|
||||
|
||||
def init_bar(self, actions):
|
||||
for ac in self.added_actions:
|
||||
|
|
|
|||
Loading…
Reference in a new issue