mirror of
https://github.com/2dust/v2rayN.git
synced 2025-08-24 20:06:54 +00:00
fix right click also change proxy error.
This commit is contained in:
parent
f277290fba
commit
5c15cfc97d
1 changed files with 11 additions and 8 deletions
|
@ -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,15 +1545,18 @@ namespace v2rayN.Forms
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
private void notifyMain_Click(object sender, EventArgs e)
|
private void notifyMain_MouseClick(object sender, MouseEventArgs e)
|
||||||
{
|
{
|
||||||
if (config.sysProxyType == ESysProxyType.ForcedClear)
|
if (e.Button == MouseButtons.Left)
|
||||||
{
|
{
|
||||||
SetListenerType(ESysProxyType.ForcedChange);
|
if (config.sysProxyType == ESysProxyType.ForcedClear)
|
||||||
}
|
{
|
||||||
else if(config.sysProxyType == ESysProxyType.ForcedChange)
|
SetListenerType(ESysProxyType.ForcedChange);
|
||||||
{
|
}
|
||||||
SetListenerType(ESysProxyType.ForcedClear);
|
else if (config.sysProxyType == ESysProxyType.ForcedChange)
|
||||||
|
{
|
||||||
|
SetListenerType(ESysProxyType.ForcedClear);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue