@@ -431,6 +431,13 @@ LfpDisplayOptions::LfpDisplayOptions(LfpDisplayCanvas* canvas_, LfpDisplaySplitt
431431 lfpDisplay->setRange (voltageRanges[ContinuousChannel::Type::AUX][selectedVoltageRange[ContinuousChannel::Type::AUX] - 1 ].getFloatValue ()
432432 *rangeGain[ContinuousChannel::Type::AUX]
433433 , ContinuousChannel::Type::AUX);
434+
435+ refreshButton = new UtilityButton (" Refresh" , Font (" Default" , " Plain" , 15 ));
436+ refreshButton->setRadius (5 .0f );
437+ refreshButton->setEnabledState (true );
438+ refreshButton->setCorners (true , true , true , true );
439+ refreshButton->addListener (this );
440+ addAndMakeVisible (refreshButton.get ());
434441
435442}
436443
@@ -465,7 +472,10 @@ void LfpDisplayOptions::resized()
465472
466473 pauseButton->setBounds (680 , getHeight () - 40 , 70 , 30 );
467474
468- colourSchemeOptionSelection->setBounds (pauseButton->getRight () + 30 ,
475+ refreshButton->setBounds (765 , getHeight () - 40 , 70 , 30 );
476+
477+
478+ colourSchemeOptionSelection->setBounds (refreshButton->getRight () + 30 ,
469479 getHeight () - 30 ,
470480 180 ,
471481 height);
@@ -930,6 +940,12 @@ void LfpDisplayOptions::buttonClicked(Button* b)
930940 timescale->setPausedState (b->getToggleState ());
931941 return ;
932942 }
943+
944+ if (b == refreshButton.get ())
945+ {
946+ lfpDisplay->rebuildDrawableChannelsList ();
947+ return ;
948+ }
933949
934950 if (b == showHideOptionsButton.get ())
935951 {
0 commit comments