mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-07-26 02:32:26 -04:00
Save and restore the SF Ftol value independently of the other modes.
(cherry picked from commit 9ef5cbb990df60b141be9ce0d808ff4452238984)
This commit is contained in:
parent
3e76477a61
commit
4cbc957593
@ -1368,6 +1368,9 @@ void MainWindow::readSettings()
|
|||||||
ui->sbTR->setValue (m_settings->value ("TRPeriod", 15).toInt());
|
ui->sbTR->setValue (m_settings->value ("TRPeriod", 15).toInt());
|
||||||
QTimer::singleShot (50, [=] {blocked = false;});
|
QTimer::singleShot (50, [=] {blocked = false;});
|
||||||
}
|
}
|
||||||
|
if (m_mode=="FT8") {
|
||||||
|
ui->sbFtol->setValue (m_settings->value("Ftol_SF", 50).toInt());
|
||||||
|
}
|
||||||
if (m_mode=="Q65") {
|
if (m_mode=="Q65") {
|
||||||
m_nSubMode=m_settings->value("SubMode_Q65",0).toInt();
|
m_nSubMode=m_settings->value("SubMode_Q65",0).toInt();
|
||||||
ui->sbSubmode->setValue(m_nSubMode_Q65);
|
ui->sbSubmode->setValue(m_nSubMode_Q65);
|
||||||
@ -7227,6 +7230,7 @@ void MainWindow::on_actionFT8_triggered()
|
|||||||
VHF_features_enabled(bVHF);
|
VHF_features_enabled(bVHF);
|
||||||
ui->cbAutoSeq->setChecked(true);
|
ui->cbAutoSeq->setChecked(true);
|
||||||
m_TRperiod=15.0;
|
m_TRperiod=15.0;
|
||||||
|
ui->sbFtol->setValue (m_settings->value ("Ftol_SF", 50).toInt()); // restore last used Ftol parameter
|
||||||
m_fastGraph->hide();
|
m_fastGraph->hide();
|
||||||
m_wideGraph->show();
|
m_wideGraph->show();
|
||||||
ui->rh_decodes_headings_label->setText(" UTC dB DT Freq " + tr ("Message"));
|
ui->rh_decodes_headings_label->setText(" UTC dB DT Freq " + tr ("Message"));
|
||||||
@ -8785,6 +8789,7 @@ void MainWindow::on_sbFtol_valueChanged(int value)
|
|||||||
statusUpdate ();
|
statusUpdate ();
|
||||||
// save last used parameters
|
// save last used parameters
|
||||||
QTimer::singleShot (200, [=] {
|
QTimer::singleShot (200, [=] {
|
||||||
|
if (m_mode=="FT8") m_settings->setValue ("Ftol_SF", ui->sbFtol->value());
|
||||||
if (m_mode=="Q65") m_settings->setValue ("Ftol_Q65", ui->sbFtol->value());
|
if (m_mode=="Q65") m_settings->setValue ("Ftol_Q65", ui->sbFtol->value());
|
||||||
if (m_mode=="MSK144") m_settings->setValue ("Ftol_MSK144", ui->sbFtol->value());
|
if (m_mode=="MSK144") m_settings->setValue ("Ftol_MSK144", ui->sbFtol->value());
|
||||||
if (m_mode=="JT65") m_settings->setValue ("Ftol_JT65", ui->sbFtol->value ());
|
if (m_mode=="JT65") m_settings->setValue ("Ftol_JT65", ui->sbFtol->value ());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user