mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-30 08:03:54 +02:00
Remove unnecessary code
This commit is contained in:
parent
8ea1a6c6cb
commit
4067331a7f
1 changed files with 1 additions and 2 deletions
|
|
@ -312,9 +312,8 @@ def init_bar(self, actions):
|
|||
action = self.gui.iactions[what]
|
||||
self.build_menu(action.qaction)
|
||||
|
||||
def build_menu(self, ac, visible=True):
|
||||
def build_menu(self, ac):
|
||||
ans = CloneAction(ac, self.native_menubar, is_top_level=True)
|
||||
ans.setVisible(visible)
|
||||
if ans.menu() is None:
|
||||
m = QMenu()
|
||||
m.addAction(CloneAction(ac, self.native_menubar))
|
||||
|
|
|
|||
Loading…
Reference in a new issue