do not expose SaveConfig to Views
This commit is contained in:
@@ -258,7 +258,7 @@ namespace Shadowsocks.View
|
||||
MessageBox.Show("Please add at least one server");
|
||||
return;
|
||||
}
|
||||
controller.SaveConfig(modifiedConfiguration);
|
||||
controller.SaveServers(modifiedConfiguration.configs);
|
||||
this.Hide();
|
||||
ShowFirstTimeBalloon();
|
||||
}
|
||||
@@ -306,9 +306,7 @@ namespace Shadowsocks.View
|
||||
private void AServerItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
MenuItem item = (MenuItem)sender;
|
||||
Configuration configuration = controller.GetConfiguration();
|
||||
configuration.index = (int)item.Tag;
|
||||
controller.SaveConfig(configuration);
|
||||
controller.SelectServerIndex((int)item.Tag);
|
||||
}
|
||||
|
||||
private void ShowLogItem_Click(object sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user