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:
parent
68dd530ca2
commit
c84f7aa8bb
1 changed files with 6 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue