Branch-invert: Add a check mark to the switch in the contextual menu.

This commit is contained in:
Guillaume Munch 2016-07-12 14:27:08 +01:00
parent 5d292fce2d
commit 6f97684d56
2 changed files with 2 additions and 1 deletions

View File

@ -494,7 +494,7 @@ Menuset
OptItem "Deactivate Branch|e" "branch-deactivate"
OptItem "Activate Branch in Master|M" "branch-master-activate"
OptItem "Deactivate Branch in Master|v" "branch-master-deactivate"
OptItem "Toggle Inversion|I" "branch-invert"
OptItem "Invert Inset|I" "branch-invert"
OptItem "Add Unknown Branch|w" "branch-add"
End

View File

@ -225,6 +225,7 @@ bool InsetBranch::getStatus(Cursor & cur, FuncRequest const & cmd,
case LFUN_BRANCH_INVERT:
flag.setEnabled(true);
flag.setOnOff(params_.inverted);
break;
case LFUN_BRANCH_ADD: