Browse Source

Fix annoying onboarding popping again and again

Why not fetching settings at init if settings has keys? :thinking_face:
nb: it actually had keys because of windows size/position saving
master
meriadec 7 years ago
parent
commit
0d674a97bb
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 4
      src/renderer/init.js

4
src/renderer/init.js

@ -37,9 +37,7 @@ const store = createStore({ history, dbMiddleware })
const rootNode = document.getElementById('app')
const settings = db.get('settings')
if (Object.keys(settings).length !== 0) {
store.dispatch(fetchSettings(settings))
}
store.dispatch(fetchSettings(settings))
const countervaluesData = db.get('countervalues')
if (countervaluesData) {

Loading…
Cancel
Save