mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-22 11:03:21 -04:00
Merge pull request #1014 from kiwix/1013-at-start-local-library-is-displayed-quickly
Use webView loading while restoring a tab
This commit is contained in:
commit
8da29c4042
@ -272,6 +272,11 @@ final class BrowserViewModel: NSObject, ObservableObject,
|
||||
private func restoreBy(tabID: NSManagedObjectID) {
|
||||
if let tab = try? Database.shared.viewContext.existingObject(with: tabID) as? Tab {
|
||||
webView.interactionState = tab.interactionState
|
||||
if webView.url != nil {
|
||||
// make sure category(.list) is not displayed
|
||||
// while restoring a tab
|
||||
isLoading = true
|
||||
}
|
||||
Task { [weak self] in
|
||||
await MainActor.run { [weak self] in
|
||||
// migrate the tab urls on demand to ZIM scheme
|
||||
|
Loading…
x
Reference in New Issue
Block a user