Implement some forgotten context menu items for arguments

* Dissolve context menu
* Label toggle (for conglomerate-styled arguments)

Fixes: #10150
This commit is contained in:
Juergen Spitzmueller 2016-05-29 12:32:53 +02:00
parent 8f858a5785
commit 55f2cc2286
2 changed files with 13 additions and 1 deletions

View File

@ -158,10 +158,19 @@ Menuset
#
# InsetArgument context menu
#
Menu "context-argument"
Item "Dissolve Inset|D" "inset-dissolve"
Separator
SwitchArguments
End
Menu "context-argument-conglomerate"
Item "Show Label|L" "inset-toggle"
Item "Dissolve Inset|D" "inset-dissolve"
Separator
SwitchArguments
End
#
# InsetBox context menu

View File

@ -232,6 +232,9 @@ bool InsetArgument::getStatus(Cursor & cur, FuncRequest const & cmd,
string InsetArgument::contextMenuName() const
{
if (decoration() == InsetLayout::CONGLOMERATE)
return "context-argument-conglomerate";
else
return "context-argument";
}