Skip to content

Commit

Permalink
Stream browser: don't show download progress badge on trigger channels
Browse files Browse the repository at this point in the history
  • Loading branch information
azonenberg committed Oct 25, 2024
1 parent 0d64c1a commit c6a7d4d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib
11 changes: 9 additions & 2 deletions src/ngscopeclient/StreamBrowserDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -612,9 +612,16 @@ void StreamBrowserDialog::renderChannelNode(shared_ptr<Instrument> instrument, s
// Channel decoration
startBadgeLine();
if (scopechan)
{ // Scope channel
if(!scopechan->IsEnabled())
{
//No badge on trigger inputs
if(scopechan->GetType(0) == Stream::STREAM_TYPE_TRIGGER)
{}

// Scope channel
else if (!scopechan->IsEnabled())
renderBadge(ImGui::ColorConvertU32ToFloat4(prefs.GetColor("Appearance.Stream Browser.instrument_disabled_badge_color")), "DISABLED", "DISA","--", NULL);

//Download in progress
else
renderDownloadProgress(instrument, channel, isLast);
}
Expand Down

0 comments on commit c6a7d4d

Please sign in to comment.