mirror of
https://github.com/kkebo/DNSecure.git
synced 2026-03-11 08:54:36 +00:00
Save text entries without return
This commit is contained in:
parent
eadaf5c269
commit
32c54c3028
1 changed files with 8 additions and 8 deletions
|
|
@ -48,8 +48,8 @@ extension DetailView: View {
|
|||
get: { configuration.servers[i] },
|
||||
set: { configuration.servers[i] = $0 }
|
||||
),
|
||||
onCommit: {
|
||||
self.server.configuration = .dnsOverTLS(configuration)
|
||||
onEditingChanged: {
|
||||
if (!$0) { self.server.configuration = .dnsOverTLS(configuration) }
|
||||
}
|
||||
)
|
||||
.textContentType(.URL)
|
||||
|
|
@ -87,8 +87,8 @@ extension DetailView: View {
|
|||
configuration.serverName = $0
|
||||
}
|
||||
),
|
||||
onCommit: {
|
||||
self.server.configuration = .dnsOverTLS(configuration)
|
||||
onEditingChanged: {
|
||||
if (!$0) { self.server.configuration = .dnsOverTLS(configuration) }
|
||||
}
|
||||
)
|
||||
.multilineTextAlignment(.trailing)
|
||||
|
|
@ -113,8 +113,8 @@ extension DetailView: View {
|
|||
get: { configuration.servers[i] },
|
||||
set: { configuration.servers[i] = $0 }
|
||||
),
|
||||
onCommit: {
|
||||
self.server.configuration = .dnsOverHTTPS(configuration)
|
||||
onEditingChanged: {
|
||||
if (!$0) { self.server.configuration = .dnsOverHTTPS(configuration) }
|
||||
}
|
||||
)
|
||||
.textContentType(.URL)
|
||||
|
|
@ -152,8 +152,8 @@ extension DetailView: View {
|
|||
configuration.serverURL = URL(string: $0)
|
||||
}
|
||||
),
|
||||
onCommit: {
|
||||
self.server.configuration = .dnsOverHTTPS(configuration)
|
||||
onEditingChanged: {
|
||||
if (!$0) { self.server.configuration = .dnsOverHTTPS(configuration) }
|
||||
}
|
||||
)
|
||||
.multilineTextAlignment(.trailing)
|
||||
|
|
|
|||
Loading…
Reference in a new issue