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

Delete "defaultBrowserCheckComplete" only when check on startup is on #4942

Merged
merged 1 commit into from
Oct 19, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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