From 3f6dad5b9281785a244267dd1249bb6d6be8f75f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20K=C3=A4berich?= Date: Tue, 16 Apr 2024 21:31:30 +0200 Subject: [PATCH] disable impedance for transmission traces, reword graph adjustment dialog --- .../PC_Application/LibreVNA-GUI/Traces/tracexyplot.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Software/PC_Application/LibreVNA-GUI/Traces/tracexyplot.cpp b/Software/PC_Application/LibreVNA-GUI/Traces/tracexyplot.cpp index b3f014c..0974d46 100644 --- a/Software/PC_Application/LibreVNA-GUI/Traces/tracexyplot.cpp +++ b/Software/PC_Application/LibreVNA-GUI/Traces/tracexyplot.cpp @@ -1070,6 +1070,7 @@ bool TraceXYPlot::supported(Trace *t, YAxis::Type type) case YAxis::Type::Capacitance: case YAxis::Type::Inductance: case YAxis::Type::QualityFactor: + case YAxis::Type::AbsImpedance: if(!t->isReflection()) { return false; } @@ -1206,9 +1207,9 @@ void TraceXYPlot::traceDropped(Trace *t, QPoint position) { Q_UNUSED(position) if(!supported(t)) { - // needs to switch to a different domain for the graph - if(!InformationBox::AskQuestion("X Axis Domain Change", "You dropped a trace that is not supported with the currently selected X axis domain." - " Do you want to remove all traces and change the graph to the correct domain?", true, "DomainChangeRequest")) { + // needs to switch to a different setting for the graph + if(!InformationBox::AskQuestion("Graph Configuration Change", "You dropped a trace that is not supported with the currently configured axes." + " Do you want to remove all traces and change the graph to the correct configuration?", true, "DomainChangeRequest")) { // user declined to change domain, to not add trace return; }