From e45b7f73b4aecdb402f35b70a3780af913d62a07 Mon Sep 17 00:00:00 2001 From: nschimme <5505185+nschimme@users.noreply.github.com> Date: Mon, 4 May 2026 16:09:18 +0000 Subject: [PATCH] fix(group): show mana column for solo players with mana The GroupWidget was hiding the Mana column until the player joined a group, even if the player themselves had mana. This happened because column visibility was only updated when characters were added or removed, but not when they were updated. This commit modifies GroupWidget::slot_onCharacterUpdated to conditionally trigger updateColumnVisibility() if the updated character's mana status is inconsistent with the current column visibility. This ensures the Mana column appears as soon as the player's vitals (including mana) are first received, while avoiding redundant visibility updates when the state hasn't changed. --- src/group/groupwidget.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/group/groupwidget.cpp b/src/group/groupwidget.cpp index 3cdb32d67..713874a75 100644 --- a/src/group/groupwidget.cpp +++ b/src/group/groupwidget.cpp @@ -1027,6 +1027,13 @@ void GroupWidget::slot_onCharacterUpdated(SharedGroupChar character) { assert(character); deref(m_model).updateCharacter(character); + + const int manaCol = static_cast(ColumnTypeEnum::MANA); + const bool hasMana = character->getMana() > 0 || character->getMaxMana() > 0; + if (m_table->isColumnHidden(manaCol) == hasMana) { + updateColumnVisibility(); + } + updatePulseTimer(); }