- sessionfile sample fixed

- sessionpath saving restored
This commit is contained in:
jean-emmanuel 2015-09-17 18:15:41 +02:00 • committed by bordun
parent 84e7303bb7
commit d527a02e0a
2 changed files with 5 additions and 0 deletions

View file

@ -166,6 +166,7 @@ ipc.on('browseSessions',function(event, data){
var sessionlist = readConfig('recentSessions')
dialog.showOpenDialog(window,{title:'Load session file',defaultPath:readConfig('sessionPath'),filters: [ { name: 'OSC Session file', extensions: ['js'] }]},function(file){
if (file==undefined) {return}
writeConfig({sessionPath:file[0].replace(file[0].split('/').pop(),'')})
renderProcess.send('openSession',file[0])
})
})