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,7 +17,12 @@ class ViewModel: NSObject, ObservableObject {
|
|||
didSet {
|
||||
Settings.blocklist = blocklist
|
||||
|
||||
toggleDns()
|
||||
if isDnsEnabled {
|
||||
toggleDns()
|
||||
}
|
||||
else {
|
||||
isProgrammaticChange = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue