divide the always-available rows in the General context too

This commit is contained in:
2026-08-07 19:10:04 +02:00
parent 980fad272f
commit cab7244b00
2 changed files with 5 additions and 6 deletions

View File

@@ -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);