Automatically adjust domain of graph to dropped trace

This commit is contained in:
Jan Käberich 2021-02-22 13:39:47 +01:00
parent 20b0b336bb
commit f6cc46781e
7 changed files with 43 additions and 4 deletions

View file

@ -299,6 +299,11 @@ void TraceSmithChart::updateContextMenu()
}
bool TraceSmithChart::supported(Trace *t)
{
return dropSupported(t);
}
bool TraceSmithChart::dropSupported(Trace *t)
{
if(t->outputType() == Trace::DataType::Frequency && t->isReflection()) {
return true;