Skip to content

Commit 69e1db5

Browse files
authored
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.
1 parent bfa04c9 commit 69e1db5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/gui/MixerChannelView.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,16 @@ MixerChannelView::MixerChannelView(QWidget* parent, MixerView* mixerView, int ch
117117
m_renameLineEditView->setFixedSize(m_renameLineEdit->height() + 5, m_renameLineEdit->width() + 5);
118118

119119
m_muteButton = new AutomatableButton(this, tr("Mute"));
120-
m_muteButton->setModel(&mixerChannel->m_muteModel);
121-
m_muteButton->setCheckable(true);
122120
m_muteButton->setObjectName("btn-mute");
123121
m_muteButton->setToolTip(tr("Mute this channel"));
122+
m_muteButton->setCheckable(true);
123+
m_muteButton->setModel(&mixerChannel->m_muteModel);
124124

125125
m_soloButton = new AutomatableButton(this, tr("Solo"));
126-
m_soloButton->setModel(&mixerChannel->m_soloModel);
127-
m_soloButton->setCheckable(true);
128126
m_soloButton->setObjectName("btn-solo");
129127
m_soloButton->setToolTip(tr("Solo this channel"));
128+
m_soloButton->setCheckable(true);
129+
m_soloButton->setModel(&mixerChannel->m_soloModel);
130130

131131
auto soloMuteLayout = new QVBoxLayout();
132132
soloMuteLayout->setContentsMargins(0, 2, 0, 2);

0 commit comments

Comments
 (0)