1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-17 21:28:43 -04:00

REST API device and channel actions: FileSource: added seek millis

This commit is contained in:
f4exb
2020-03-09 21:38:30 +01:00
parent 801ead642a
commit 2159184854
3 changed files with 28 additions and 0 deletions
@@ -163,6 +163,16 @@ bool FileSourceGUI::handleMessage(const Message& message)
return true;
}
else if (FileSource::MsgConfigureFileSourceSeek::match(message)) // API action "seekms" feedback
{
const FileSource::MsgConfigureFileSourceSeek& notif = (FileSource::MsgConfigureFileSourceSeek&) message;
int seekMillis = notif.getMillis();
ui->navTime->blockSignals(true);
ui->navTime->setValue(seekMillis);
ui->navTime->blockSignals(false);
return true;
}
else
{
return false;