Edit guide menu entry

parent 476c039a
......@@ -221,6 +221,14 @@ Rectangle {
timeline.switchGuide(timeline.position);
}
}
MenuItem {
id: editGuideMenu
text: i18n('Edit Guide')
visible: false
onTriggered: {
timeline.editGuide(timeline.position);
}
}
MenuItem {
text: i18n('Add Audio Track')
shortcut: 'Ctrl+U'
......@@ -239,7 +247,14 @@ Rectangle {
}
}
onAboutToShow: {
addGuideMenu.text = guidesModel.hasMarker(timeline.position) ? i18n('Remove Guide') : i18n('Add Guide')
if (guidesModel.hasMarker(timeline.position)) {
// marker at timeline position
addGuideMenu.text = i18n('Remove Guide')
editGuideMenu.visible = true
} else {
addGuideMenu.text = i18n('Add Guide')
editGuideMenu.visible = false
}
console.log("pop menu")
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment