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"); resources.ApplyResources(this.notifyMain, "notifyMain");
this.notifyMain.ContextMenuStrip = this.cmsMain; this.notifyMain.ContextMenuStrip = this.cmsMain;
this.notifyMain.MouseClick += new System.Windows.Forms.MouseEventHandler(this.notifyMain_MouseClick); this.notifyMain.DoubleClick += notifyIcon_DoubleClick;
// //
// cmsMain // cmsMain
// //

View file

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