editor: missing 'edit parent' from context menu -> 0.39.2

This commit is contained in:
bordun 2018-11-01 16:10:10 +01:00
parent f01e27894c
commit 4b29be2139
4 changed files with 14 additions and 4 deletions

View file

@ -1,5 +1,10 @@
# Changelog
## 0.39.2
- bug fixes
- regression: missing 'edit parent' action in editor's context menu
## 0.39.1
- bug fixes

View file

@ -2,7 +2,7 @@
"name": "open-stage-control",
"productName": "Open Stage Control",
"description": "Libre and modular OSC / MIDI controller",
"version": "0.39.1",
"version": "0.39.2",
"author": {
"name": "Jean-Emmanuel Doucet",
"email": "jean-emmanuel@ammd.net"

View file

@ -37,4 +37,6 @@ appJson.scripts = {
"start-node": "node index.js"
}
appJson.optionalDependencies.electron = packageJson.optionalDependencies.electron
fs.writeFileSync(path.resolve(__dirname + '/../app/package.json'), JSON.stringify(appJson, null, ' '))

View file

@ -189,9 +189,12 @@ var handleClick = function(event) {
var clickX = Math.round((eventData.offsetX + eventData.target.scrollLeft) / (GRIDWIDTH * PXSCALE)) * GRIDWIDTH,
clickY = Math.round((eventData.offsetY + eventData.target.scrollTop) / (GRIDWIDTH * PXSCALE)) * GRIDWIDTH
actions[icon('expand') + ' ' + locales('editor_editparent')] = ()=>{
editor.select(parent)
}
actions.push({
label: icon('expand') + ' ' + locales('editor_editparent'),
action: ()=>{
editor.select(parent)
}
})
if (type === 'widget') {