Skip to content

Commit

Permalink
Merge pull request #1385 from gqrx-sdr/save-iq-format
Browse files Browse the repository at this point in the history
Save I/Q recording format to settings
  • Loading branch information
argilo authored Oct 17, 2024
2 parents ea40e55 + 1f42941 commit afe61b7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/qtgui/iq_tool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@ void CIqTool::saveSettings(QSettings *settings)
else
settings->remove("baseband/rec_dir");

QString format = ui->formatCombo->currentText();
if (format != "Raw")
settings->setValue("baseband/rec_format", format);
else
settings->remove("baseband/rec_format");
}

void CIqTool::readSettings(QSettings *settings)
Expand All @@ -246,6 +251,10 @@ void CIqTool::readSettings(QSettings *settings)
// Location of baseband recordings
QString dir = settings->value("baseband/rec_dir", QDir::homePath()).toString();
ui->recDirEdit->setText(dir);

// Format of baseband recordings
QString format = settings->value("baseband/rec_format", "Raw").toString();
ui->formatCombo->setCurrentText(format);
}


Expand Down

0 comments on commit afe61b7

Please sign in to comment.