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

Commit

Permalink
Fix #7846: Ensure Ads enabled pref is updated correctly when disabling
Browse files Browse the repository at this point in the history
This was moved in a 1.57 core bump for the enabling path but missed for the disabling path
  • Loading branch information
kylehickinson committed Aug 8, 2023
1 parent f6ce22b commit b0717a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Brave/Frontend/Rewards/BraveRewards.swift
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ public class BraveRewards: NSObject {
}
self.reportLastAdsUsageP3A()
if !newValue {
self.ads.isEnabled = newValue
self.proposeAdsShutdown()
} else {
self.fetchWalletAndInitializeAds(toggleAds: true)
Expand Down

0 comments on commit b0717a6

Please sign in to comment.