Direct access to AudioProcessorValueTreeState without attachments

I have 2 buttons. The first one enable a mode, say modeX, and the second one disables it.

SO in their click event I do something like

btn1.onClick = [&]()
{
  auto* modeXEnabled = m_audioProcessor.apvts.getRawParameterValue("MODEX");
  modeXEnabled = true;
}

btn2.onClick = [&]()
{
  auto* modeXEnabled = m_audioProcessor.apvts.getRawParameterValue("MODEX");
  modeXEnabled = false;
}

everything works except parameter listener, it doesn’t call parameterChanged. What is the right way to change parameter without attachment but with notification?

It seems that
m_audioProcessor.apvts.getParameter("MODEX")->setValueNotifyingHost(VALUE);
solves the issue