mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
Show the current type of Phantom in the Phantom context menu.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29190 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
61dffbdbcf
commit
a62b68befd
@ -285,10 +285,15 @@ bool InsetPhantom::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
switch (cmd.action) {
|
||||
|
||||
case LFUN_INSET_MODIFY:
|
||||
case LFUN_INSET_SETTINGS:
|
||||
if (cmd.getArg(0) == "phantom") {
|
||||
InsetPhantomParams params;
|
||||
string2params(to_utf8(cmd.argument()), params);
|
||||
flag.setOnOff(params_.type == params.type);
|
||||
}
|
||||
flag.setEnabled(true);
|
||||
return true;
|
||||
|
||||
case LFUN_INSET_SETTINGS:
|
||||
case LFUN_INSET_DIALOG_UPDATE:
|
||||
flag.setEnabled(true);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user