mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -199,8 +199,9 @@ class MenuBar(QMenuBar): # {{{
|
||||
|
||||
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…
x
Reference in New Issue
Block a user