Skip to content

Commit 3872d56

Browse files
committed
Removed vestigial "Thresholds" section from trigger properties dialog since we already have a second way to set the trigger level in the actual parameter
1 parent 046ad5b commit 3872d56

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

src/ngscopeclient/TriggerPropertiesDialog.cpp

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* *
33
* ngscopeclient *
44
* *
5-
* Copyright (c) 2012-2024 Andrew D. Zonenberg and contributors *
5+
* Copyright (c) 2012-2025 Andrew D. Zonenberg and contributors *
66
* All rights reserved. *
77
* *
88
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the *
@@ -168,32 +168,6 @@ void TriggerPropertiesPage::Render(bool graphEditorMode)
168168
EndSection(graphEditorMode);
169169
}
170170

171-
if(StartSection("Thresholds", graphEditorMode))
172-
{
173-
//Primary level
174-
Unit volts(Unit::UNIT_VOLTS);
175-
if(Dialog::UnitInputWithImplicitApply(
176-
"Level",
177-
m_triggerLevel,
178-
m_committedLevel,
179-
volts))
180-
{
181-
trig->SetLevel(m_committedLevel);
182-
updated = true;
183-
}
184-
185-
//Check for changes made elsewhere in the GUI (dragging arrow etc)
186-
if(trig->GetLevel() != m_committedLevel)
187-
{
188-
m_committedLevel = trig->GetLevel();
189-
m_triggerLevel = volts.PrettyPrint(m_committedLevel);
190-
}
191-
192-
//TODO: if we have a secondary level, do that
193-
194-
EndSection(graphEditorMode);
195-
}
196-
197171
auto cdrtrig = dynamic_cast<CDRTrigger*>(trig);
198172
if(cdrtrig)
199173
{

0 commit comments

Comments
 (0)