|
|
@@ -155,9 +155,9 @@ namespace Shadowsocks.View |
|
|
|
ServersListBox.SelectedIndex = _modifiedConfiguration.index;
|
|
|
|
LoadSelectedServer();
|
|
|
|
|
|
|
|
UpdateServersMenu(); |
|
|
|
UpdateServersMenu();
|
|
|
|
enableItem.Checked = _modifiedConfiguration.enabled;
|
|
|
|
ShareOverLANItem.Checked = _modifiedConfiguration.shareOverLan; |
|
|
|
ShareOverLANItem.Checked = _modifiedConfiguration.shareOverLan;
|
|
|
|
}
|
|
|
|
|
|
|
|
private void UpdateServersMenu()
|
|
|
@@ -279,8 +279,8 @@ namespace Shadowsocks.View |
|
|
|
{
|
|
|
|
MessageBox.Show("Please add at least one server");
|
|
|
|
return;
|
|
|
|
} |
|
|
|
controller.SaveServers(_modifiedConfiguration.configs); |
|
|
|
}
|
|
|
|
controller.SaveServers(_modifiedConfiguration.configs);
|
|
|
|
this.Hide();
|
|
|
|
ShowFirstTimeBalloon();
|
|
|
|
}
|
|
|
@@ -352,7 +352,10 @@ namespace Shadowsocks.View |
|
|
|
|
|
|
|
private void enableLogBox_CheckedChanged(object sender, EventArgs e)
|
|
|
|
{
|
|
|
|
MessageBox.Show("This option only works on next startup.");
|
|
|
|
if (this.Visible)
|
|
|
|
{
|
|
|
|
MessageBox.Show("This option only works on next startup.");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|