From 87f1be1d7640ba61c383c78e68a6bcabf0c30e81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C5=91rinc=20Serf=C5=91z=C5=91?= Date: Thu, 13 Jun 2024 11:32:38 +0200 Subject: [PATCH] fix(midi): Fix setting message type mask --- src/MidiInNode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MidiInNode.cpp b/src/MidiInNode.cpp index 8e7dd43..8d38a8b 100644 --- a/src/MidiInNode.cpp +++ b/src/MidiInNode.cpp @@ -74,7 +74,7 @@ void MidiInNode::render_internal() ImGui::PushStyleColor(ImGuiCol_HeaderActive, ImVec4{}); if (ImGui::TreeNode("Advanced")) { - midi::MessageTypeMask new_message_type_mask; + midi::MessageTypeMask new_message_type_mask = m_message_type_mask; ImGui::Checkbox("Receive SysEx", &new_message_type_mask.m_sysex_enabled); ImGui::Checkbox("Receive MIDI Clock", &new_message_type_mask.m_time_enabled); ImGui::Checkbox("Receive Active Sensing", &new_message_type_mask.m_sensing_enabled);