double click is better

This commit is contained in:
JaredDC 2021-06-30 02:30:37 +08:00
parent eca04d425b
commit b9b3aed4ce
2 changed files with 5 additions and 6 deletions

View file

@ -573,7 +573,7 @@
//
resources.ApplyResources(this.notifyMain, "notifyMain");
this.notifyMain.ContextMenuStrip = this.cmsMain;
this.notifyMain.MouseClick += new System.Windows.Forms.MouseEventHandler(this.notifyMain_MouseClick);
this.notifyMain.DoubleClick += notifyIcon_DoubleClick;
//
// cmsMain
//

View file

@ -978,12 +978,11 @@ namespace v2rayN.Forms
#region
private void notifyMain_MouseClick(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
private void notifyIcon_DoubleClick(object sender, EventArgs e)
{
ShowForm();
}
}
private void menuExit_Click(object sender, EventArgs e)