mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
set port number if not zero
This commit is contained in:
@@ -111,7 +111,9 @@ namespace Wox
|
|||||||
cbEnableProxy.Unchecked += (o, e) => DisableProxy();
|
cbEnableProxy.Unchecked += (o, e) => DisableProxy();
|
||||||
cbEnableProxy.IsChecked = UserSettingStorage.Instance.ProxyEnabled;
|
cbEnableProxy.IsChecked = UserSettingStorage.Instance.ProxyEnabled;
|
||||||
tbProxyServer.Text = UserSettingStorage.Instance.ProxyServer;
|
tbProxyServer.Text = UserSettingStorage.Instance.ProxyServer;
|
||||||
tbProxyPort.Text = UserSettingStorage.Instance.ProxyPort.ToString();
|
if (UserSettingStorage.Instance.ProxyPort != 0) {
|
||||||
|
tbProxyPort.Text = UserSettingStorage.Instance.ProxyPort.ToString();
|
||||||
|
}
|
||||||
tbProxyUserName.Text = UserSettingStorage.Instance.ProxyUserName;
|
tbProxyUserName.Text = UserSettingStorage.Instance.ProxyUserName;
|
||||||
tbProxyPassword.Password = UserSettingStorage.Instance.ProxyPassword;
|
tbProxyPassword.Password = UserSettingStorage.Instance.ProxyPassword;
|
||||||
if (UserSettingStorage.Instance.ProxyEnabled)
|
if (UserSettingStorage.Instance.ProxyEnabled)
|
||||||
|
|||||||
Reference in New Issue
Block a user