Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #4942 from darkdh/4934
Browse files Browse the repository at this point in the history
Delete "defaultBrowserCheckComplete" only when check on startup is on
  • Loading branch information
bbondy authored Oct 19, 2016
2 parents 497ecf8 + 449e40d commit 8dd3e69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/renderer/components/checkDefaultBrowserDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ class CheckDefaultBrowserDialog extends ImmutableComponent {
appActions.defaultBrowserUpdated(false)
appActions.defaultBrowserCheckComplete()
appActions.changeSetting(settings.CHECK_DEFAULT_ON_STARTUP, this.props.checkDefaultOnStartup)
this.props.onHide()
}
onUseBrave () {
appActions.defaultBrowserUpdated(true)
appActions.defaultBrowserCheckComplete()
appActions.changeSetting(settings.CHECK_DEFAULT_ON_STARTUP, this.props.checkDefaultOnStartup)
this.props.onHide()
}
render () {
return <Dialog className='checkDefaultBrowserDialog' >
Expand Down
6 changes: 4 additions & 2 deletions app/sessionStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,10 @@ module.exports.cleanAppData = (data, isShutdown) => {
data.temporarySiteSettings = {}
// Delete Flash state since this is checked on startup
delete data.flashInitialized
// Delete defaultBrowserCheckComplete state since this is checked on startup
delete data.defaultBrowserCheckComplete
if (data.settings[settings.CHECK_DEFAULT_ON_STARTUP] === true) {
// Delete defaultBrowserCheckComplete state since this is checked on startup
delete data.defaultBrowserCheckComplete
}
// Delete Recovery status on shut down
try {
delete data.ui.about.preferences.recoverySucceeded
Expand Down

0 comments on commit 8dd3e69

Please sign in to comment.