mirror of https://github.com/2dust/v2rayN
Update MainForm.cs
parent
03ea24f29b
commit
bfdc0a2e77
|
@ -131,6 +131,7 @@ namespace v2rayN.Forms
|
||||||
SysProxyHandle.UpdateSysProxy(config, true);
|
SysProxyHandle.UpdateSysProxy(config, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
StorageUI();
|
||||||
ConfigHandler.SaveConfig(ref config);
|
ConfigHandler.SaveConfig(ref config);
|
||||||
statistics?.SaveToFile();
|
statistics?.SaveToFile();
|
||||||
statistics?.Close();
|
statistics?.Close();
|
||||||
|
@ -170,7 +171,7 @@ namespace v2rayN.Forms
|
||||||
switch (Utils.ToInt(e.Name))
|
switch (Utils.ToInt(e.Name))
|
||||||
{
|
{
|
||||||
case (int)EGlobalHotkey.ShowForm:
|
case (int)EGlobalHotkey.ShowForm:
|
||||||
ShowForm();
|
if (this.ShowInTaskbar) HideForm(); else ShowForm();
|
||||||
break;
|
break;
|
||||||
case (int)EGlobalHotkey.SystemProxyClear:
|
case (int)EGlobalHotkey.SystemProxyClear:
|
||||||
SetListenerType(ESysProxyType.ForcedClear);
|
SetListenerType(ESysProxyType.ForcedClear);
|
||||||
|
@ -834,6 +835,7 @@ namespace v2rayN.Forms
|
||||||
|
|
||||||
private void tsbClose_Click(object sender, EventArgs e)
|
private void tsbClose_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
StorageUI();
|
||||||
HideForm();
|
HideForm();
|
||||||
//this.WindowState = FormWindowState.Minimized;
|
//this.WindowState = FormWindowState.Minimized;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue