1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-06 16:05:13 -04:00

REST API device and channel actions: fixes to implementation

This commit is contained in:
f4exb
2020-03-09 19:56:09 +01:00
parent ecfc71afa8
commit 801ead642a
18 changed files with 315 additions and 60 deletions
+17
View File
@@ -165,6 +165,23 @@ bool RTLSDRGui::handleMessage(const Message& message)
return true;
}
else if (RTLSDRInput::MsgFileRecord::match(message)) // API action "record" feedback
{
const RTLSDRInput::MsgFileRecord& notif = (const RTLSDRInput::MsgFileRecord&) message;
bool record = notif.getStartStop();
ui->record->blockSignals(true);
ui->record->setChecked(record);
if (record) {
ui->record->setStyleSheet("QToolButton { background-color : red; }");
} else {
ui->record->setStyleSheet("QToolButton { background:rgb(79,79,79); }");
}
ui->record->blockSignals(false);
return true;
}
else
{
return false;