Issue #3: Only change system setting immediately, if isDnsEnabled.
This commit is contained in:
parent
8c1716de77
commit
603a23a1a8
1 changed files with 6 additions and 1 deletions
|
|
@ -17,8 +17,13 @@ class ViewModel: NSObject, ObservableObject {
|
||||||
didSet {
|
didSet {
|
||||||
Settings.blocklist = blocklist
|
Settings.blocklist = blocklist
|
||||||
|
|
||||||
|
if isDnsEnabled {
|
||||||
toggleDns()
|
toggleDns()
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
isProgrammaticChange = false
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Published
|
@Published
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue