Skip to content

Commit

Permalink
Merge pull request shadowsocks#2221 from DamirAinullin/use_proxy_wron…
Browse files Browse the repository at this point in the history
…g_check

Improve the code readability useProxy test condition
  • Loading branch information
celeron533 authored Feb 24, 2019
2 parents cd5f482 + 7a6230f commit 94cc6c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shadowsocks-csharp/View/ProxyForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ private void LoadCurrentConfiguration()

private void OKButton_Click(object sender, EventArgs e)
{

if (_modifiedProxyConfig.useProxy=UseProxyCheckBox.Checked)
_modifiedProxyConfig.useProxy = UseProxyCheckBox.Checked;
if (_modifiedProxyConfig.useProxy)
{
if (!int.TryParse(ProxyPortTextBox.Text, out _modifiedProxyConfig.proxyPort))
{
Expand Down

0 comments on commit 94cc6c5

Please sign in to comment.