File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,9 @@ async function createWindow () {
4141 await import ( 'electron-store' )
4242 . then ( ( imp ) => imp . default )
4343 . then ( ( Store ) => {
44- let store = new Store ( )
44+ let store = new Store ( {
45+ migrations : require ( './store-migrations' ) . default ,
46+ } )
4547 console . log ( "Initiating store" )
4648 ipcMain . on ( 'electron-store-get' , async ( event , val ) => {
4749 event . returnValue = store . get ( val )
Original file line number Diff line number Diff line change 1+ export default {
2+ '0.2.3' : store => {
3+ store . set ( 'PlotsLayoutDefault.defaults.layoutOA-Timeserie' , true ) ;
4+ let layout = store . get ( 'PlotsLayoutDefault.defaults.layout' )
5+ layout . map ( ( plotLayout ) => {
6+ if ( plotLayout . plotKey === 'OATimeserie' ) {
7+ plotLayout . plotKey = 'Hydrograph' ;
8+ }
9+ } ) ;
10+ store . set ( 'PlotsLayoutDefault.defaults.layout' , layout ) ;
11+ }
12+ }
You can’t perform that action at this time.
0 commit comments