Browse Source

Merge pull request #2221 from DamirAinullin/use_proxy_wrong_check

Improve the code readability useProxy test condition
tags/4.1.5
Allen Zhu GitHub 6 years ago
parent
commit
94cc6c523a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      shadowsocks-csharp/View/ProxyForm.cs

+ 2
- 2
shadowsocks-csharp/View/ProxyForm.cs View File

@@ -59,8 +59,8 @@ namespace Shadowsocks.View
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))
{


Loading…
Cancel
Save