Fix #782 do not ask for tray password when window is not minimized to tray

This commit is contained in:
Andrew Resch 2009-12-12 22:38:26 +00:00
parent 7e0d09a7bc
commit f3f3b3669f

View File

@ -274,7 +274,7 @@ class SystemTray(component.Component):
"""Called when the tray icon is left clicked."""
self.blink(False)
if self.window.active():
if self.window.active() or self.window.visible():
self.window.hide()
else:
if self.config["lock_tray"]: