mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-05 14:35:23 +00:00
gui: replot active mode when settings plot are updated
This commit is contained in:
parent
b7a7626e3d
commit
d6cecf2603
8 changed files with 50 additions and 2 deletions
|
|
@ -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, [=](){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue