Browse Source

only left button will trigger double click on notify icon

tags/2.3
clowwindy 10 years ago
parent
commit
20023339d3
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      shadowsocks-csharp/View/MenuViewController.cs

+ 6
- 3
shadowsocks-csharp/View/MenuViewController.cs View File

@@ -59,7 +59,7 @@ namespace Shadowsocks.View
UpdateTrayIcon();
_notifyIcon.Visible = true;
_notifyIcon.ContextMenu = contextMenu1;
_notifyIcon.DoubleClick += notifyIcon1_DoubleClick;
_notifyIcon.MouseDoubleClick += notifyIcon1_DoubleClick;
this.updateChecker = new UpdateChecker();
updateChecker.NewVersionFound += updateChecker_NewVersionFound;
@@ -393,9 +393,12 @@ namespace Shadowsocks.View
Process.Start("https://github.com/clowwindy/shadowsocks-csharp");
}
private void notifyIcon1_DoubleClick(object sender, EventArgs e)
private void notifyIcon1_DoubleClick(object sender, MouseEventArgs e)
{
ShowConfigForm();
if (e.Button == MouseButtons.Left)
{
ShowConfigForm();
}
}
private void EnableItem_Click(object sender, EventArgs e)


Loading…
Cancel
Save