Skip to content

Commit

Permalink
Save I/Q recording format to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
argilo committed Oct 17, 2024
1 parent ea40e55 commit 1f42941
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 1f42941

Please sign in to comment.