Revert "Updated to meet the hint from Wongsyrone."
This reverts commit 84c8053577.
This commit is contained in:
@@ -336,13 +336,16 @@ namespace Shadowsocks.View
|
||||
return;
|
||||
}
|
||||
|
||||
Server selectedServer = controller.GetCurrentServer();
|
||||
Server clone = (Server)selectedServer.Clone();
|
||||
if (ServersListBox.SelectedIndex >= 0 && ServersListBox.SelectedIndex < _modifiedConfiguration.configs.Count)
|
||||
{
|
||||
Server selectedServer = _modifiedConfiguration.configs[ServersListBox.SelectedIndex];
|
||||
Server clone = (Server)selectedServer.Clone();
|
||||
|
||||
_modifiedConfiguration.configs.Add(clone);
|
||||
LoadConfiguration(_modifiedConfiguration);
|
||||
ServersListBox.SelectedIndex = _modifiedConfiguration.configs.Count - 1;
|
||||
_lastSelectedIndex = ServersListBox.SelectedIndex;
|
||||
_modifiedConfiguration.configs.Add(clone);
|
||||
LoadConfiguration(_modifiedConfiguration);
|
||||
ServersListBox.SelectedIndex = _modifiedConfiguration.configs.Count - 1;
|
||||
_lastSelectedIndex = ServersListBox.SelectedIndex;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user