Skip to content

Commit

Permalink
fix logic for LumatoneState property changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vsicurella committed Aug 2, 2024
1 parent 264eee0 commit f06f5e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/lumatone_editor_library/data/lumatone_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ juce::ValueTree LumatoneState::loadStateProperties(juce::ValueTree stateIn)

void LumatoneState::handleStatePropertyChange(juce::ValueTree stateIn, const juce::Identifier& property)
{
// Ignore any changes from parents
if (stateIn != state || !stateIn.isAChildOf(state))
// Only acknowledge changes to this node
if (stateIn != state)
return;

if (property == LumatoneStateProperty::LastConnectedSerialNumber)
Expand Down

0 comments on commit f06f5e8

Please sign in to comment.