mirror of
https://github.com/2dust/v2rayN.git
synced 2025-08-24 20:06:54 +00:00
click icon change connect mode for MicroSoft TODO
This commit is contained in:
parent
1d569fae06
commit
7acc73a38d
1 changed files with 12 additions and 1 deletions
|
@ -36,7 +36,7 @@ namespace v2rayN.Forms
|
|||
{
|
||||
MyAppExit(false);
|
||||
};
|
||||
|
||||
notifyMain.Click += new EventHandler(notifyMain_Click);
|
||||
var _timer = new System.Timers.Timer();
|
||||
/*_timer.Interval = 1000 * 60 * mins;*/
|
||||
_timer.Interval = 1000 * 60 * 60 * 3; // every 3 hours
|
||||
|
@ -1545,5 +1545,16 @@ namespace v2rayN.Forms
|
|||
}
|
||||
#endregion
|
||||
|
||||
private void notifyMain_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (config.sysProxyType == ESysProxyType.ForcedClear)
|
||||
{
|
||||
SetListenerType(ESysProxyType.ForcedChange);
|
||||
}
|
||||
else if(config.sysProxyType == ESysProxyType.ForcedChange)
|
||||
{
|
||||
SetListenerType(ESysProxyType.ForcedClear);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue