Commit 6b7d8cc3 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Avoid fetching the default server every time when the user hasn't chosen one...

Avoid fetching the default server every time when the user hasn't chosen one by explicitly assigning the default value
parent 162d7151
......@@ -54,7 +54,9 @@ class DnsServerInformationPreference(key: String, defaultValue: (String) -> DnsS
}
} else {
defaultValue(key)
defaultValue(key).also {
setValue(thisRef, property, it)
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment