mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-07 23:43:42 +00:00
Fix statusbar mode update connection
This commit is contained in:
parent
3765e4009f
commit
506502ce02
3 changed files with 9 additions and 7 deletions
|
|
@ -253,13 +253,6 @@ AppWindow::AppWindow(QWidget *parent)
|
|||
Mode::getActiveMode()->saveSreenshot();
|
||||
});
|
||||
|
||||
auto setModeStatusbar = [=](QString msg) {
|
||||
lModeInfo.setText(msg);
|
||||
};
|
||||
connect(vna, &Mode::statusbarMessage, setModeStatusbar);
|
||||
connect(generator, &Mode::statusbarMessage, setModeStatusbar);
|
||||
connect(spectrumAnalyzer, &Mode::statusbarMessage, setModeStatusbar);
|
||||
|
||||
connect(ui->actionManual_Control, &QAction::triggered, this, &AppWindow::StartManualControl);
|
||||
connect(ui->actionFirmware_Update, &QAction::triggered, this, &AppWindow::StartFirmwareUpdateDialog);
|
||||
connect(ui->actionSource_Calibration, &QAction::triggered, this, &AppWindow::SourceCalibrationDialog);
|
||||
|
|
@ -893,6 +886,11 @@ SCPI* AppWindow::getSCPI()
|
|||
return &scpi;
|
||||
}
|
||||
|
||||
void AppWindow::setModeStatus(QString msg)
|
||||
{
|
||||
lModeInfo.setText(msg);
|
||||
}
|
||||
|
||||
int AppWindow::UpdateDeviceList()
|
||||
{
|
||||
deviceActionGroup->setExclusive(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue