From a2fea99dd464636658404da00c00c30b5e2b3278 Mon Sep 17 00:00:00 2001 From: Kyle Hickinson Date: Tue, 8 Aug 2023 12:40:09 -0400 Subject: [PATCH] Fix #7846: Ensure Ads enabled pref is updated correctly when disabling (#7847) This was moved in a 1.57 core bump for the enabling path but missed for the disabling path --- Sources/Brave/Frontend/Rewards/BraveRewards.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/Brave/Frontend/Rewards/BraveRewards.swift b/Sources/Brave/Frontend/Rewards/BraveRewards.swift index a7a00c9bbd3..c957bbda23e 100644 --- a/Sources/Brave/Frontend/Rewards/BraveRewards.swift +++ b/Sources/Brave/Frontend/Rewards/BraveRewards.swift @@ -132,6 +132,7 @@ public class BraveRewards: NSObject { } self.reportLastAdsUsageP3A() if !newValue { + self.ads.isEnabled = newValue self.proposeAdsShutdown() } else { self.fetchWalletAndInitializeAds(toggleAds: true)