Browse Source

Faster app relaunch (old one was buggy and slow)

In fact we don't even need to reload the whole app, a reload of the
renderer does the job. :dab:
master
meriadec 7 years ago
parent
commit
353f1f992a
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 9
      src/components/SettingsPage/sections/Profile.js

9
src/components/SettingsPage/sections/Profile.js

@ -84,14 +84,13 @@ class TabProfile extends PureComponent<Props, State> {
this.props.cleanAccountsCache()
await delay(500)
db.cleanCache()
remote.app.relaunch()
remote.app.exit()
remote.getCurrentWindow().webContents.reload()
}
handleHardReset = () => {
handleHardReset = async () => {
db.resetAll()
remote.app.relaunch()
remote.app.exit()
await delay(500)
remote.getCurrentWindow().webContents.reload()
}
handleChangePasswordCheck = isChecked => {

Loading…
Cancel
Save