Fix NEDNSSettingsErrorDomain 3 when the app becomes active

Fixes #28, #29
This commit is contained in:
Kenta Kubo 2021-01-07 23:28:07 +09:00
parent 8d686fc484
commit 247163f6aa

View file

@ -223,7 +223,7 @@ extension ContentView: View {
.onChange(of: self.scenePhase) { phase in
if phase == .active {
self.updateStatus()
} else {
} else if phase == .background {
// FIXME: This is a workaround for self.$severs[i].
// That cannot save settings as soon as it is modified.
guard let id = self.usedID,