diff --git a/OpenHaystack/OpenHaystack/HaystackApp/Views/OpenHaystackMainView.swift b/OpenHaystack/OpenHaystack/HaystackApp/Views/OpenHaystackMainView.swift index 0ef144e..1b05ce7 100644 --- a/OpenHaystack/OpenHaystack/HaystackApp/Views/OpenHaystackMainView.swift +++ b/OpenHaystack/OpenHaystack/HaystackApp/Views/OpenHaystackMainView.swift @@ -185,6 +185,15 @@ struct OpenHaystackMainView: View { self.checkPluginIsRunning(nil) } + update() + } + + func update(){ + DispatchQueue.main.asyncAfter(deadline: .now() + 30) + { + self.downloadLocationReports() + update() + } } /// Download the location reports for all current accessories. Shows an error if something fails, like plug-in is missing