vna/mode/app/sa: refactor plot update colors

This commit is contained in:
Kiara Navarro 2022-06-23 21:46:12 -05:00
parent 794f55f1fb
commit 423585845e
No known key found for this signature in database
GPG key ID: CBA9F2172CE33FBA
7 changed files with 11 additions and 31 deletions

View file

@ -184,14 +184,9 @@ AppWindow::AppWindow(QWidget *parent)
StartTCPServer(p.SCPIServer.port);
}
}
auto active = Mode::getActiveMode();
if(active == spectrumAnalyzer) {
spectrumAnalyzer->updateGraphColors();
}
else if (active == vna) {
vna->updateGraphColors();
}
auto active = Mode::getActiveMode();
active->updateGraphColors();
// averaging mode may have changed, update for all relevant modes
if(p.Acquisition.useMedianAveraging) {