Skip to content

Commit

Permalink
Use webView loading while restoring a tab
Browse files Browse the repository at this point in the history
  • Loading branch information
BPerlakiH committed Oct 27, 2024
1 parent 6a14d28 commit 2eb874b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ViewModel/BrowserViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2eb874b

Please sign in to comment.