fix right click also change proxy error.

This commit is contained in:
JaredDC 2021-07-06 12:41:41 +08:00
parent f277290fba
commit 5c15cfc97d

View file

@ -36,7 +36,7 @@ namespace v2rayN.Forms
{ {
MyAppExit(false); MyAppExit(false);
}; };
notifyMain.Click += new EventHandler(notifyMain_Click); notifyMain.MouseClick += new MouseEventHandler(notifyMain_MouseClick);
var _timer = new System.Timers.Timer(); var _timer = new System.Timers.Timer();
/*_timer.Interval = 1000 * 60 * mins;*/ /*_timer.Interval = 1000 * 60 * mins;*/
_timer.Interval = 1000 * 60 * 60 * 3; // every 3 hours _timer.Interval = 1000 * 60 * 60 * 3; // every 3 hours
@ -1545,7 +1545,9 @@ namespace v2rayN.Forms
} }
#endregion #endregion
private void notifyMain_Click(object sender, EventArgs e) private void notifyMain_MouseClick(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{ {
if (config.sysProxyType == ESysProxyType.ForcedClear) if (config.sysProxyType == ESysProxyType.ForcedClear)
{ {
@ -1558,3 +1560,4 @@ namespace v2rayN.Forms
} }
} }
} }
}