sessions: fix saving to history when opening
This commit is contained in:
parent
0b804ba71c
commit
a66f166df0
2 changed files with 6 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue