LEDs being renderd when drum pad tab is not active

This commit is contained in:
feedc0de committed 2022-12-18 16:00:48 +01:00
1 parent a0efca01c7
commit 6d6c029608
2 files changed
+6 -1

No files matched your search

+4 -1
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)
{
+2
View File
@@ -95,4 +95,6 @@ private:
bool m_learning{};
QColor m_oldColor;
QBrush m_oldBrush;
bool m_sendColors{};
};