Browse Source

MeshCore demod: connect preset combo and Apply button

The GUI is set up on the rollup contents widget, so Qt does not
auto-connect the on_meshPreset_currentIndexChanged and
on_meshApply_clicked slots. They were never called: choosing a preset or
clicking Apply had no effect, USER did not enable the manual LoRa
controls and the preset went back to the saved EU_NARROW on the next
settings refresh. Connect them explicitly as the MeshCore modulator and
Meshtastic demodulator already do.

Fixes #2874
chirpmodem-v8.0.0
Wahaj18 1 month ago
parent
commit
d292308b04
  1. 2
      plugins/channelrx/demodmeshcore/meshcoredemodgui.cpp

2
plugins/channelrx/demodmeshcore/meshcoredemodgui.cpp

@ -1593,6 +1593,8 @@ void MeshcoreDemodGUI::setupMeshcoreAutoProfileControls() @@ -1593,6 +1593,8 @@ void MeshcoreDemodGUI::setupMeshcoreAutoProfileControls()
// MeshCore unchanged.
ui->meshAutoSampleRate->setChecked(m_settings.m_meshcoreAutoSampleRate);
QObject::connect(ui->meshPreset, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &MeshcoreDemodGUI::on_meshPreset_currentIndexChanged);
QObject::connect(ui->meshApply, &QPushButton::clicked, this, &MeshcoreDemodGUI::on_meshApply_clicked);
QObject::connect(ui->meshKeys, &QPushButton::clicked, this, &MeshcoreDemodGUI::on_meshKeys_clicked);
QObject::connect(ui->meshAutoLock, &QPushButton::clicked, this, &MeshcoreDemodGUI::on_meshAutoLock_clicked);
QObject::connect(ui->meshAutoSampleRate, &QCheckBox::toggled, this, &MeshcoreDemodGUI::on_meshAutoSampleRate_toggled);

Loading…
Cancel
Save