Browse Source

small bug

Fix a small bug
pull/45/head
wzxjohn 10 years ago
parent
commit
fa5f7adad8
1 changed files with 8 additions and 5 deletions
  1. +8
    -5
      shadowsocks-csharp/View/ConfigForm.cs

+ 8
- 5
shadowsocks-csharp/View/ConfigForm.cs View File

@@ -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.");
}
}
}
}

Loading…
Cancel
Save