Closed sahildua2305 closed 8 years ago
This might be of some help
http://www.mylifeforthecode.com/saving-and-restoring-window-state-in-electron/
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.
I think this - https://github.com/jviotti/electron-json-storage will serve the purpose. Will have a look at both though.
Enable persistent storage to show the last opened file report (parsed) on start.