Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions Sources/App/Scenes/WebViewSceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,6 @@ final class WebViewSceneDelegate: NSObject, UIWindowSceneDelegate {
Current.modelManager.subscribe(isAppInForeground: {
UIApplication.shared.applicationState == .active
})

await Current.appDatabaseUpdater.update()
Current.panelsUpdater.update()
}

/// Force update location when user opens the app
Expand Down
4 changes: 3 additions & 1 deletion Sources/App/Settings/Settings/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ struct SettingsView: View {
.onAppear {
appDatabaseUpdaterTask?.cancel()
appDatabaseUpdaterTask = Task {
await Current.appDatabaseUpdater.update()
for server in Current.servers.all {
await Current.appDatabaseUpdater.update(server: server)
}
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions Sources/App/WebView/WebViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,11 @@ final class WebViewController: UIViewController, WKNavigationDelegate, WKUIDeleg
DispatchQueue.main.async { [self] in
loadActiveURLIfNeeded()
}

Task {
await Current.appDatabaseUpdater.update(server: server)
Current.panelsUpdater.update()
}
}

private func showNoActiveURLError() {
Expand Down
Loading
Loading