Skip to content

Commit

Permalink
Restore sync state after refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
medengineer committed Nov 7, 2024
1 parent 015b980 commit 4f27694
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Source/NeuropixEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,10 @@ void BackgroundLoaderWithProgressWindow::updateProbeMap()
bs->close();
bs->open();

// Restore sync state
if (editor->inputOutputSyncSelector->getSelectedItemIndex() == 0)
bs->setSyncAsInput();

for (auto hs : bs->getHeadstages())
{
if (hs != nullptr)
Expand Down
3 changes: 2 additions & 1 deletion Source/NeuropixEditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -321,12 +321,13 @@ class NeuropixEditor : public VisualizerEditor,

NeuropixCanvas* canvas;

std::unique_ptr<ComboBox> inputOutputSyncSelector;

private:
OwnedArray<UtilityButton> directoryButtons;
OwnedArray<FifoMonitor> fifoMonitors;

std::unique_ptr<ComboBox> mainSyncSelector;
std::unique_ptr<ComboBox> inputOutputSyncSelector;
// std::unique_ptr<ComboBox> syncFrequencySelector;
std::unique_ptr<Label> syncFrequencyLabel;

Expand Down

0 comments on commit 4f27694

Please sign in to comment.