fix #10677 Initialize the checkbox with the value of current Project when it is created just as how it is done in case of Workspace and ViewMode

This commit is contained in:
MalevolentStrix 2022-03-07 17:15:00 +05:30
parent 68dd530ca2
commit c84f7aa8bb

View file

@ -74,7 +74,12 @@ QString NotationStatusBarModel::accessibilityInfo() const
QVariant NotationStatusBarModel::concertPitchItem()
{
return QVariant::fromValue(makeMenuItem(TOGGLE_CONCERT_PITCH_CODE));
MenuItem* item = makeMenuItem(TOGGLE_CONCERT_PITCH_CODE);
UiActionState state;
state.enabled = notation() ? true : false;
state.checked = notation() ? notation()->style()->styleValue(StyleId::concertPitch).toBool() : false;
item->setState(state);
return QVariant::fromValue(item);
}
QVariant NotationStatusBarModel::currentWorkspaceItem()