gui: replot active mode when settings plot are updated

This commit is contained in:
Kiara Navarro 2021-06-28 23:47:02 -03:00
parent b7a7626e3d
commit d6cecf2603
No known key found for this signature in database
GPG key ID: CDEFDCA3F6E04955
8 changed files with 50 additions and 2 deletions

View file

@ -202,8 +202,15 @@ AppWindow::AppWindow(QWidget *parent)
StartTCPServer(p.General.SCPI.port);
}
}
// settings might have changed, update necessary stuff
// TraceXYPlot::updateGraphColors();
auto active = Mode::getActiveMode();
if(active == spectrumAnalyzer) {
spectrumAnalyzer->updateGraphColors();
}
else if (active == vna) {
vna->updateGraphColors();
}
});
connect(ui->actionAbout, &QAction::triggered, [=](){