mirror of
https://github.com/2dust/v2rayN.git
synced 2025-08-24 03:46:55 +00:00
double click is better
This commit is contained in:
parent
eca04d425b
commit
b9b3aed4ce
2 changed files with 5 additions and 6 deletions
2
v2rayN/v2rayN/Forms/MainForm.Designer.cs
generated
2
v2rayN/v2rayN/Forms/MainForm.Designer.cs
generated
|
@ -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
|
||||
//
|
||||
|
|
|
@ -978,12 +978,11 @@ namespace v2rayN.Forms
|
|||
|
||||
#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)
|
||||
|
|
Loading…
Reference in a new issue