divide the always-available rows in the General context too
This commit is contained in:
@@ -159,11 +159,10 @@ void ControlsPanel::rebuild(const ControlContext& context)
|
||||
m_rowsLayout->addWidget(makeRow(action, context, m_rows));
|
||||
}
|
||||
|
||||
// The always-available block sits under a divider, except in the General context,
|
||||
// where those rows and the context's own are the same kind of thing to a player
|
||||
// with nothing selected and no mode active (REQ-UI-CONTROLS-CARD).
|
||||
if (!m_shownAlwaysActions.empty()
|
||||
&& getControlContextKind(context) != ControlContextKind::General)
|
||||
// The always-available block sits under a divider in every context, the General one
|
||||
// included, so the card is read the same way wherever the player is
|
||||
// (REQ-UI-CONTROLS-CARD).
|
||||
if (!m_shownAlwaysActions.empty())
|
||||
{
|
||||
QFrame* divider = new QFrame(m_rows);
|
||||
divider->setFrameShape(QFrame::HLine);
|
||||
|
||||
Reference in New Issue
Block a user