Skip to content

Commit

Permalink
修复windows下点击系统托盘图标时主窗口即弹出的问题。
Browse files Browse the repository at this point in the history
  • Loading branch information
oldj committed Jan 9, 2013
1 parent a7e049e commit f28813f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/SwitchHosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def __init__(self):
self.restart = False
self.taskbar_icon = None

self.sys_type = sys_type
if sys_type != "win":
self.working_path = os.path.join(self.user_home, ".SwitchHosts")
else:
Expand Down Expand Up @@ -96,7 +97,7 @@ def OnActivate(self, event):
参见:http://wxpython-users.1045709.n5.nabble.com/OS-X-issue-raising-minimized-frame-td2371601.html
"""

if event.GetActive():
if self.sys_type == "mac" and event.GetActive():
if self.frame.IsIconized():
self.frame.Iconize(False)
if not self.frame.IsShown():
Expand Down
2 changes: 1 addition & 1 deletion src/libs/VERSION.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# email: [email protected]
#

VERSION = "0.2.2.1793"
VERSION = "0.2.2.1794"

0 comments on commit f28813f

Please sign in to comment.