Use none for network setting placeholders
Less confusing when disabled.
This commit is contained in:
parent
5f0d4960a5
commit
a05a016881
|
@ -351,7 +351,7 @@ extension NetworkSettingsViewController {
|
||||||
cell.delegate = self
|
cell.delegate = self
|
||||||
if networkChoices.dns == .manual {
|
if networkChoices.dns == .manual {
|
||||||
cell.field.isEnabled = true
|
cell.field.isEnabled = true
|
||||||
cell.field.placeholder = "example.com"
|
cell.field.placeholder = L10n.Global.Cells.none
|
||||||
} else {
|
} else {
|
||||||
cell.field.isEnabled = false
|
cell.field.isEnabled = false
|
||||||
cell.field.placeholder = nil
|
cell.field.placeholder = nil
|
||||||
|
@ -371,7 +371,7 @@ extension NetworkSettingsViewController {
|
||||||
cell.delegate = self
|
cell.delegate = self
|
||||||
if networkChoices.dns == .manual {
|
if networkChoices.dns == .manual {
|
||||||
cell.field.isEnabled = true
|
cell.field.isEnabled = true
|
||||||
cell.field.placeholder = "8.8.8.8"
|
cell.field.placeholder = L10n.Global.Cells.none
|
||||||
} else {
|
} else {
|
||||||
cell.field.isEnabled = false
|
cell.field.isEnabled = false
|
||||||
cell.field.placeholder = nil
|
cell.field.placeholder = nil
|
||||||
|
@ -395,7 +395,7 @@ extension NetworkSettingsViewController {
|
||||||
cell.delegate = self
|
cell.delegate = self
|
||||||
if networkChoices.proxy == .manual {
|
if networkChoices.proxy == .manual {
|
||||||
cell.field.isEnabled = true
|
cell.field.isEnabled = true
|
||||||
cell.field.placeholder = "192.168.1.1"
|
cell.field.placeholder = L10n.Global.Cells.none
|
||||||
} else {
|
} else {
|
||||||
cell.field.isEnabled = false
|
cell.field.isEnabled = false
|
||||||
cell.field.placeholder = nil
|
cell.field.placeholder = nil
|
||||||
|
@ -413,7 +413,7 @@ extension NetworkSettingsViewController {
|
||||||
cell.delegate = self
|
cell.delegate = self
|
||||||
if networkChoices.proxy == .manual {
|
if networkChoices.proxy == .manual {
|
||||||
cell.field.isEnabled = true
|
cell.field.isEnabled = true
|
||||||
cell.field.placeholder = "8080"
|
cell.field.placeholder = L10n.Global.Cells.none
|
||||||
} else {
|
} else {
|
||||||
cell.field.isEnabled = false
|
cell.field.isEnabled = false
|
||||||
cell.field.placeholder = nil
|
cell.field.placeholder = nil
|
||||||
|
@ -433,7 +433,7 @@ extension NetworkSettingsViewController {
|
||||||
cell.delegate = self
|
cell.delegate = self
|
||||||
if networkChoices.proxy == .manual {
|
if networkChoices.proxy == .manual {
|
||||||
cell.field.isEnabled = true
|
cell.field.isEnabled = true
|
||||||
cell.field.placeholder = "excluded.com"
|
cell.field.placeholder = L10n.Global.Cells.none
|
||||||
} else {
|
} else {
|
||||||
cell.field.isEnabled = false
|
cell.field.isEnabled = false
|
||||||
cell.field.placeholder = nil
|
cell.field.placeholder = nil
|
||||||
|
|
Loading…
Reference in New Issue