Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ analysis-build
asan-build
release-nodebug-build
debug-noopt-build
project/
*.bak
3 changes: 3 additions & 0 deletions src/ngscopeclient/ChannelPropertiesDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,8 @@ bool ChannelPropertiesDialog::DoRender()
{
if(ImGui::CollapsingHeader(streamname.c_str()))
{

ImGui::PushID(i);
auto unit = m_channel->GetYAxisUnits(i);

//If no change to offset in dialog, update our input value when we change offset outside the dialog
Expand All @@ -565,6 +567,7 @@ bool ChannelPropertiesDialog::DoRender()
ImGui::SetNextItemWidth(width);
if(UnitInputWithExplicitApply("Range", m_range[i], m_committedRange[i], unit))
ochan->SetVoltageRange(m_committedRange[i], i);
ImGui::PopID();
}
}
}
Expand Down
6 changes: 5 additions & 1 deletion src/ngscopeclient/TriggerPropertiesDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ void TriggerPropertiesPage::Render(bool graphEditorMode)
m_committedTriggerOffset,
fs))
{
m_scope->SetTriggerOffset(off);
m_scope->SetTriggerOffset(/*off*/m_committedTriggerOffset);
updated = true;
}

Dialog::HelpMarker(
Expand Down Expand Up @@ -249,6 +250,9 @@ void TriggerPropertiesPage::Render(bool graphEditorMode)
//Skip trigger level as that's redundant
if(it->first == "Level")
continue;

if(it->second.IsHidden())
continue;

if(FilterPropertiesDialog::DoParameter(it->second, it->first, m_paramTempValues))
updated = true;
Expand Down