Fix mute/solo icons not matching initial mixer channel state

Correct the button initialization order so mixer channels show the proper mute and solo states when they first appear. This applies to channels loaded from a project and channels created during the session, ensuring the UI reflects the actual underlying state properly.
This commit is contained in:
Sotonye Atemie
2025-11-28 20:33:53 -05:00
committed by GitHub
parent bfa04c987d
commit 69e1db58a8

View File

@@ -117,16 +117,16 @@ MixerChannelView::MixerChannelView(QWidget* parent, MixerView* mixerView, int ch
m_renameLineEditView->setFixedSize(m_renameLineEdit->height() + 5, m_renameLineEdit->width() + 5);
m_muteButton = new AutomatableButton(this, tr("Mute"));
m_muteButton->setModel(&mixerChannel->m_muteModel);
m_muteButton->setCheckable(true);
m_muteButton->setObjectName("btn-mute");
m_muteButton->setToolTip(tr("Mute this channel"));
m_muteButton->setCheckable(true);
m_muteButton->setModel(&mixerChannel->m_muteModel);
m_soloButton = new AutomatableButton(this, tr("Solo"));
m_soloButton->setModel(&mixerChannel->m_soloModel);
m_soloButton->setCheckable(true);
m_soloButton->setObjectName("btn-solo");
m_soloButton->setToolTip(tr("Solo this channel"));
m_soloButton->setCheckable(true);
m_soloButton->setModel(&mixerChannel->m_soloModel);
auto soloMuteLayout = new QVBoxLayout();
soloMuteLayout->setContentsMargins(0, 2, 0, 2);