From 9a59d4bf7144de6290f2e9f2440c6a5e185cd51b Mon Sep 17 00:00:00 2001 From: Brandon T Date: Mon, 9 Sep 2019 15:22:31 -0400 Subject: [PATCH] Fixed so that PBO only kills tabs and configurations when switched ON after the user receives the warning. --- Client/Frontend/Browser/BrowserViewController.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Client/Frontend/Browser/BrowserViewController.swift b/Client/Frontend/Browser/BrowserViewController.swift index 38560b7715e..46ee04e6040 100644 --- a/Client/Frontend/Browser/BrowserViewController.swift +++ b/Client/Frontend/Browser/BrowserViewController.swift @@ -3123,8 +3123,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.General.alwaysRequestDesktopSite.key: tabManager.reset() self.tabManager.reloadSelectedTab()