mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 15:04:11 +00:00
XY-Plot setup handling improved
- Use readable names for axis type/mode in json (old integer encoding still valid when loading old setups) - Bugfix: time domain traces not included in context menu when plot is constructed after the trace
This commit is contained in:
parent
0b00186a5a
commit
0f345ba253
4 changed files with 92 additions and 19 deletions
|
|
@ -247,12 +247,10 @@ std::set<TracePlot *> TracePlot::getPlots()
|
|||
|
||||
void TracePlot::newTraceAvailable(Trace *t)
|
||||
{
|
||||
if(supported(t)) {
|
||||
traces[t] = false;
|
||||
connect(t, &Trace::deleted, this, &TracePlot::traceDeleted);
|
||||
connect(t, &Trace::nameChanged, this, &TracePlot::updateContextMenu);
|
||||
connect(t, &Trace::typeChanged, this, &TracePlot::updateContextMenu);
|
||||
}
|
||||
traces[t] = false;
|
||||
connect(t, &Trace::deleted, this, &TracePlot::traceDeleted);
|
||||
connect(t, &Trace::nameChanged, this, &TracePlot::updateContextMenu);
|
||||
connect(t, &Trace::typeChanged, this, &TracePlot::updateContextMenu);
|
||||
updateContextMenu();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue