Skip to content

Commit

Permalink
Issue with default browser prompt not hiding resolved (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasstrba authored Apr 20, 2022
1 parent 76b1be3 commit 0f3b67a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions DuckDuckGo/Home Page/View/HomePageViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ final class HomePageViewController: NSViewController {
guard !AppDelegate.isRunningTests else { return }
refreshFavoritesModel()
refreshRecentlyVisitedModel()
refreshDefaultBrowserModel()
}

func createRecentlyVisitedModel() -> HomePage.Models.RecentlyVisitedModel {
Expand Down Expand Up @@ -135,6 +136,10 @@ final class HomePageViewController: NSViewController {
recentlyVisitedModel.refreshWithHistory(historyCoordinating.history ?? [])
}

func refreshDefaultBrowserModel() {
defaultBrowserModel.isDefault = DefaultBrowserPreferences().isDefault
}

func subscribeToBookmarks() {
bookmarkManager.listPublisher.receive(on: RunLoop.main).sink { [weak self] _ in
withAnimation {
Expand Down

0 comments on commit 0f3b67a

Please sign in to comment.