main: resolve to absolute path when adding session to history
This commit is contained in:
parent
c1dc378603
commit
e65d287907
2 changed files with 3 additions and 1 deletions
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
## 0.22.0
|
||||
|
||||
- bug fixes
|
||||
- sessions opened from command line with relative paths are now added to the history with their absolute path
|
||||
- main
|
||||
- added `zeroconf` / `bonjour` publishing for the app's http and osc input ports
|
||||
- cli
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ module.exports = {
|
|||
if (err || !stats.isFile()) return
|
||||
|
||||
// add session to history
|
||||
sessionlist.unshift(data)
|
||||
sessionlist.unshift(path.resolve(data))
|
||||
// remove doubles from history
|
||||
sessionlist = sessionlist.filter(function(elem, index, self) {
|
||||
return index == self.indexOf(elem)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue