Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fixed so that PBO only kills tabs and configurations when switched ON…
Browse files Browse the repository at this point in the history
… after the user receives the warning.
  • Loading branch information
Brandon-T committed Aug 23, 2019
1 parent 7e08c5b commit f21c140
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Client/Frontend/Browser/BrowserViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2951,8 +2951,10 @@ extension BrowserViewController: PreferencesObserver {
setupTabs()
updateTabsBarVisibility()
updateApplicationShortcuts()
tabManager.removeAll()
tabManager.resetConfiguration()
if isPrivate { //When PBO is turned ON, we remove all tabs and configurations.
tabManager.removeAll()
tabManager.resetConfiguration()
}
case Preferences.Shields.blockAdsAndTracking.key,
Preferences.Shields.httpsEverywhere.key,
Preferences.Shields.blockScripts.key,
Expand Down

0 comments on commit f21c140

Please sign in to comment.