mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 14:35:46 +02:00
Preferences sub menu does not have a sub menu of it's own. Wrong action was assigned.
This commit is contained in:
parent
3d9232b738
commit
119afd3fc7
1 changed files with 2 additions and 1 deletions
|
|
@ -315,7 +315,7 @@ def __init__(self, listener, opts, actions, parent=None):
|
|||
SIGNAL('triggered(bool)'), self.convert_single)
|
||||
self.convert_menu = cm
|
||||
pm = QMenu()
|
||||
pm.addAction(self.action_preferences)
|
||||
pm.addAction(self.preferences_action)
|
||||
pm.addAction(_('Run welcome wizard'))
|
||||
self.connect(pm.actions()[1], SIGNAL('triggered(bool)'),
|
||||
self.run_wizard)
|
||||
|
|
@ -515,6 +515,7 @@ def no_op(self, *args):
|
|||
pass
|
||||
|
||||
def system_tray_icon_activated(self, r):
|
||||
print r
|
||||
if r == QSystemTrayIcon.Trigger:
|
||||
if self.isVisible():
|
||||
self.hide_windows()
|
||||
|
|
|
|||
Loading…
Reference in a new issue