diff --git a/src/nfc-app/app-qt/src/main/cpp/QtWindow.cpp b/src/nfc-app/app-qt/src/main/cpp/QtWindow.cpp index 61b846d..b42298f 100644 --- a/src/nfc-app/app-qt/src/main/cpp/QtWindow.cpp +++ b/src/nfc-app/app-qt/src/main/cpp/QtWindow.cpp @@ -24,7 +24,6 @@ #include #include #include -#include #include #include #include @@ -34,8 +33,6 @@ #include #include -#include - #include #include #include @@ -923,12 +920,21 @@ struct QtWindow::Impl bool signalSelected = ui->logicView->selectionSizeRange() > 0 || ui->radioView->selectionSizeRange() > 0; bool signalPresent = logicSignalPresent || radioSignalPresent; bool signalWide = logicSignalWide || radioSignalWide; + bool decoderEnabled = logicDecoderEnabled || radioDecoderEnabled; + + // update signal label + if (signalPresent && !decoderEnabled) + ui->signalLabel->setText(tr("Enable decoder to view acquired signal")); + else if (!decoderEnabled) + ui->signalLabel->setText(tr("Enable decoder and start acquisition or open a trace file")); + else + ui->signalLabel->setText(tr("Start acquisition or open a trace file")); // show views based on selected features - ui->logicView->setVisible(logicSignalPresent); - ui->radioView->setVisible(radioSignalPresent); - ui->signalScroll->setVisible(signalPresent); - ui->signalLabel->setVisible(!signalPresent); + ui->logicView->setVisible(logicSignalPresent && logicDecoderEnabled); + ui->radioView->setVisible(radioSignalPresent && radioDecoderEnabled); + ui->signalScroll->setVisible(signalPresent && decoderEnabled); + ui->signalLabel->setVisible(!signalPresent || !decoderEnabled); ui->frequencyView->setEnabled(spectrumEnabled); // if no data is present, disable related actions