Fix context menu of InsetMathRef

This commit is contained in:
Juergen Spitzmueller 2024-04-01 17:59:56 +02:00
parent a020bbc4a8
commit 31ec96e01f

View File

@ -164,6 +164,10 @@ bool InsetMathRef::getStatus(Cursor & cur, FuncRequest const & cmd,
switch (cmd.action()) { switch (cmd.action()) {
// we handle these // we handle these
case LFUN_INSET_MODIFY: case LFUN_INSET_MODIFY:
if (cmd.getArg(0) == "changetype")
status.setOnOff(from_ascii(cmd.getArg(1)) == commandname());
status.setEnabled(true);
return true;
case LFUN_INSET_DIALOG_UPDATE: case LFUN_INSET_DIALOG_UPDATE:
case LFUN_INSET_SETTINGS: case LFUN_INSET_SETTINGS:
case LFUN_MOUSE_RELEASE: case LFUN_MOUSE_RELEASE: