LEDs being renderd when drum pad tab is not active

This commit is contained in:
2022-12-18 16:00:48 +01:00
parent a0efca01c7
commit 6d6c029608
2 changed files with 6 additions and 1 deletions

View File

@ -185,6 +185,7 @@ void SampleWidget::learn(quint8 channel, quint8 note)
void SampleWidget::unsendColor()
{
m_sendColors = false;
midi::MidiMessage midiMsg;
midiMsg.channel = m_ui->channelSpinBox->value();
@ -198,6 +199,7 @@ void SampleWidget::unsendColor()
void SampleWidget::sendColor()
{
m_sendColors = true;
midi::MidiMessage midiMsg;
midiMsg.channel = m_ui->channelSpinBox->value();
@ -262,7 +264,8 @@ void SampleWidget::updateStatus()
}
setPalette(pal);
sendColor();
if (m_sendColors)
sendColor();
if (m_reply)
{

View File

@ -95,4 +95,6 @@ private:
bool m_learning{};
QColor m_oldColor;
QBrush m_oldBrush;
bool m_sendColors{};
};