Gui: Add Action::setBlockedChecked

Remove the second parameter of Action::setChecked and
provide Action::setBlockedChecked instead.
This commit is contained in:
wmayer
2025-01-22 15:28:46 +01:00
committed by Ladislav Michl
parent 8644498400
commit 0ea02d60c1
6 changed files with 31 additions and 25 deletions

View File

@@ -340,7 +340,7 @@ void CmdTechDrawToggleFrame::activated(int iMsg)
Gui::Action *action = this->getAction();
if (action) {
action->setChecked(!vpPage->getFrameState(), true);
action->setBlockedChecked(!vpPage->getFrameState());
}
}
@@ -358,7 +358,7 @@ bool CmdTechDrawToggleFrame::isActive()
Gui::Action* action = this->getAction();
if (action) {
action->setChecked(vpp && !vpp->getFrameState(), true);
action->setBlockedChecked(vpp && !vpp->getFrameState());
}
return true;