Skip to content

Commit 94cc6c5

Browse files
authored
Merge pull request shadowsocks#2221 from DamirAinullin/use_proxy_wrong_check
Improve the code readability useProxy test condition
2 parents cd5f482 + 7a6230f commit 94cc6c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shadowsocks-csharp/View/ProxyForm.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ private void LoadCurrentConfiguration()
5959

6060
private void OKButton_Click(object sender, EventArgs e)
6161
{
62-
63-
if (_modifiedProxyConfig.useProxy=UseProxyCheckBox.Checked)
62+
_modifiedProxyConfig.useProxy = UseProxyCheckBox.Checked;
63+
if (_modifiedProxyConfig.useProxy)
6464
{
6565
if (!int.TryParse(ProxyPortTextBox.Text, out _modifiedProxyConfig.proxyPort))
6666
{

0 commit comments

Comments
 (0)