lazysource / ireport

An electron app for awesome reporting of your source code quality.
3 stars 2 forks source link

Enable persistent storage #7

Closed sahildua2305 closed 8 years ago

sahildua2305 commented 8 years ago

Enable persistent storage to show the last opened file report (parsed) on start.

droidchef commented 8 years ago

This might be of some help

http://www.mylifeforthecode.com/saving-and-restoring-window-state-in-electron/

droidchef commented 8 years ago

Have a key called lastViewedReportPath and store the value in it, whenever the app opens, the defaultPath should point to lastViewedReportPath if at all it exists in the local storage.

sahildua2305 commented 8 years ago

I think this - https://github.com/jviotti/electron-json-storage will serve the purpose. Will have a look at both though.