Skip to content

Commit

Permalink
networkanalyser: decouple iteration computation from GUI update
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Suciu <[email protected]>
  • Loading branch information
adisuciu committed Apr 5, 2022
1 parent 67cd6f0 commit 6a38ba0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/network_analyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,12 @@ NetworkAnalyzer::NetworkAnalyzer(struct iio_context *ctx, Filter *filt,
m_phaseGraph.setXMin(start);
m_phaseGraph.setXMax(stop);

computeIterations();
updateNumSamples(true);
QMetaObject::invokeMethod(this,
[=](){
computeIterations();
updateNumSamples(true);
},
Qt::QueuedConnection);
});


Expand Down

0 comments on commit 6a38ba0

Please sign in to comment.