sessions: fix saving to history when opening

This commit is contained in:
jean-emmanuel 2019-04-07 10:04:17 +02:00
parent 0b804ba71c
commit a66f166df0
2 changed files with 6 additions and 4 deletions

View file

@ -2,6 +2,8 @@
## next
- bug fixes
- sessions not added to history when opened
- widgets
- **removed** deprecated widgets `multifader`, `multitoggle`, `multipush` and `formula`
- new `JS{{}}` property syntax for javascript lovers

View file

@ -72,6 +72,10 @@ module.exports = {
if (Array.isArray(data.path)) data.path = path.resolve(...data.path)
if (!settings.read('readOnly')) {
module.exports.sessionAddToHistory(data.path)
}
ipc.clients[clientId].sessionPath = data.path
ipc.send('setTitle', path.basename(data.path), clientId)
@ -204,10 +208,6 @@ module.exports = {
}
}
if (!settings.read('readOnly')) {
module.exports.sessionAddToHistory(data.path)
}
module.exports.sessionSetPath({path: data.path}, clientId)
})