Skip to content

Commit

Permalink
Fix Linux build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiegle committed Aug 23, 2024
1 parent fd70d52 commit 83f5f23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Plugins/SpikeViewer/SpikeDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ bool SpikeDisplay::getMonitorStateForPlot (int plotNum)
{
if (spikePlots.size() > plotNum)
return spikePlots[plotNum]->getMonitorState();
else
return false;
}

void SpikeDisplay::setMonitorStateForPlot (int plotNum, bool state)
Expand Down
7 changes: 2 additions & 5 deletions Source/UI/DefaultConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,6 @@ bool DefaultConfigComponent::keyPressed (const KeyPress& key, Component* origina
neuropixelsButton->setToggleState (true, sendNotification);
fileReaderButton->setToggleState (false, sendNotification);
}

return true;
}
// Handle right/shift+tab key presses to move right
else if (key == KeyPress::leftKey || key == KeyPress(KeyPress::tabKey, ModifierKeys::shiftModifier, 0))
Expand All @@ -289,13 +287,12 @@ bool DefaultConfigComponent::keyPressed (const KeyPress& key, Component* origina
acqBoardButton->setToggleState (true, sendNotification);
fileReaderButton->setToggleState (false, sendNotification);
}

return true;
}
// Handle return key presses to trigger the load button
else if (key == KeyPress::returnKey)
{
goButton->triggerClick();
return true;
}

return true;
}

0 comments on commit 83f5f23

Please sign in to comment.