sindresorhus / electron-store

Simple data persistence for your Electron app or module - Save and load user preferences, app state, cache, etc
MIT License
4.61k stars 150 forks source link

defaults value can not be changed #201

Closed kevinwang930 closed 3 years ago

kevinwang930 commented 3 years ago

I use electron-store in electron-main with some default outputpath like below

defaults: {
        outputPath: oldValue
}

then I changed the default path to another value like below

defaults: {
        outputPath: newValue
}

and restart the app and I found the output path is still the old value, does not reflect my changes in the setting, then I opened the json file and in it the outputPath is the old value, how can I solve this problem ?

kevinwang930 commented 3 years ago

find a solution, use reset to reset keys to defaults