From 69e1db58a8e6238d65dc7ca614fbfaf194e5a944 Mon Sep 17 00:00:00 2001 From: Sotonye Atemie Date: Fri, 28 Nov 2025 20:33:53 -0500 Subject: [PATCH] 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. --- src/gui/MixerChannelView.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/MixerChannelView.cpp b/src/gui/MixerChannelView.cpp index e0ca4333d..302f2b2e9 100644 --- a/src/gui/MixerChannelView.cpp +++ b/src/gui/MixerChannelView.cpp @@ -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);