mirror of
https://github.com/2dust/v2rayN.git
synced 2025-05-02 21:28:51 +00:00
bug fix
This commit is contained in:
parent
209786cdb6
commit
f7e3eb180b
1 changed files with 8 additions and 1 deletions
|
@ -799,12 +799,20 @@ namespace v2rayN.Forms
|
||||||
private void menuExport2ClientConfig_Click(object sender, EventArgs e)
|
private void menuExport2ClientConfig_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
int index = GetLvSelectedIndex();
|
int index = GetLvSelectedIndex();
|
||||||
|
if (index < 0)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
MainFormHandler.Instance.Export2ClientConfig(lstVmess[index], config);
|
MainFormHandler.Instance.Export2ClientConfig(lstVmess[index], config);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void menuExport2ServerConfig_Click(object sender, EventArgs e)
|
private void menuExport2ServerConfig_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
int index = GetLvSelectedIndex();
|
int index = GetLvSelectedIndex();
|
||||||
|
if (index < 0)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
MainFormHandler.Instance.Export2ServerConfig(lstVmess[index], config);
|
MainFormHandler.Instance.Export2ServerConfig(lstVmess[index], config);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1244,7 +1252,6 @@ namespace v2rayN.Forms
|
||||||
int index = GetLvSelectedIndex();
|
int index = GetLvSelectedIndex();
|
||||||
if (index < 0)
|
if (index < 0)
|
||||||
{
|
{
|
||||||
UI.Show(ResUI.PleaseSelectServer);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (ConfigHandler.MoveServer(ref config, ref lstVmess, index, eMove) == 0)
|
if (ConfigHandler.MoveServer(ref config, ref lstVmess, index, eMove) == 0)
|
||||||
|
|
Loading…
Reference in a new issue