Skip to content

Commit

Permalink
NTP: If bg image setting is OFF, turn branded bg OFF as well
Browse files Browse the repository at this point in the history
  • Loading branch information
cezaraugusto committed Apr 3, 2020
1 parent 8a44e78 commit e9cd8a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/brave_new_tab_ui/containers/newTab/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ export default class Settings extends React.PureComponent<Props, {}> {
<SettingsText>{getLocale('brandedWallpaperOptIn')}</SettingsText>
<Toggle
onChange={toggleBrandedWallpaperOptIn}
checked={brandedWallpaperOptIn}
// This option can only be enabled if
// users opt in for background images
checked={showBackgroundImage && brandedWallpaperOptIn}
disabled={!showBackgroundImage}
size='small'
/>
Expand Down

0 comments on commit e9cd8a4

Please sign in to comment.