Skip to content

Commit 788e13d

Browse files
committed
Fix unable to enable single channel view in LFP Viewer
When number of input channels is 1, double-clicking on the channel did not enable single channel view
1 parent fd0bfeb commit 788e13d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Plugins/LfpDisplayNode/LfpDisplay.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ void LfpDisplay::rebuildDrawableChannelsList()
782782
if (channelIndex > -1)
783783
{
784784

785-
if (drawableChannels.size() != 1) // if we haven't already gone through this ordeal
785+
if (drawableChannels.size() != 1 || numChans == 1) // if we haven't already gone through this ordeal
786786
{
787787
LfpChannelTrack lfpChannelTrack{ channels[channelIndex], channelInfo[channelIndex] };
788788

0 commit comments

Comments
 (0)