mirror of
https://github.com/kkebo/DNSecure.git
synced 2026-03-11 08:54:36 +00:00
parent
4dc38583be
commit
7db10b52de
1 changed files with 7 additions and 0 deletions
|
|
@ -170,6 +170,13 @@ extension ContentView: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.onAppear(perform: self.updateStatus)
|
.onAppear(perform: self.updateStatus)
|
||||||
|
.onReceive(
|
||||||
|
NotificationCenter.default.publisher(
|
||||||
|
for: UIScene.willEnterForegroundNotification
|
||||||
|
)
|
||||||
|
) { _ in
|
||||||
|
self.updateStatus()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.alert(isPresented: self.$alertIsPresented) {
|
.alert(isPresented: self.$alertIsPresented) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue