File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -703,6 +703,7 @@ void NeuropixelsV1Interface::buttonClicked(Button* button)
703703 }
704704
705705 updateInfoString ();
706+ repaint ();
706707
707708 CoreServices::updateSignalChain (editor);
708709 }
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ void NeuropixelsV2eInterface::buttonClicked(Button* button)
104104 }
105105
106106 updateInfoString ();
107+ repaint ();
107108
108109 CoreServices::updateSignalChain (editor);
109110 }
Original file line number Diff line number Diff line change @@ -622,16 +622,23 @@ namespace OnixSourcePlugin
622622 Colour getElectrodeColour (int i)
623623 {
624624 auto mode = parent->getMode ();
625-
626625 auto settings = getSettings ();
626+ auto device = parent->getDevice ();
627+
627628 if (settings == nullptr ) return Colours::grey;
628629
629630 if (settings->electrodeMetadata [i].status == ElectrodeStatus::DISCONNECTED) // not available
630631 {
631632 return disconnectedColors[settings->electrodeMetadata [i].bank ];
632633 }
633634 else if (settings->electrodeMetadata [i].type == ElectrodeType::REFERENCE)
635+ {
634636 return Colours::black;
637+ }
638+ else if (!device->isEnabled ())
639+ {
640+ return Colours::darkgrey;
641+ }
635642 else
636643 {
637644 if (mode == VisualizationMode::ENABLE_VIEW) // ENABLED STATE
You can’t perform that action at this time.
0 commit comments