| 5538 | } |
| 5539 | |
| 5540 | void RadioSetupDialog::setFlexControlConnectionStatus(bool connected, const QString& port) |
| 5541 | { |
| 5542 | if (m_flexControlStatusLabel) { |
| 5543 | if (connected) { |
| 5544 | const QString displayPort = port.isEmpty() |
| 5545 | ? AppSettings::instance().value("FlexControlPort").toString() |
| 5546 | : port; |
| 5547 | m_flexControlStatusLabel->setText(QString("Connected (%1)").arg(displayPort)); |
| 5548 | AetherSDR::ThemeManager::instance().applyStyleSheet(m_flexControlStatusLabel, "QLabel { color: {{color.accent.success}}; font-size: 11px; }"); |
| 5549 | } else { |
| 5550 | m_flexControlStatusLabel->setText("Not detected"); |
| 5551 | AetherSDR::ThemeManager::instance().applyStyleSheet(m_flexControlStatusLabel, "QLabel { color: {{color.text.label}}; font-size: 11px; }"); |
| 5552 | } |
| 5553 | } |
| 5554 | if (m_flexControlCloseButton) |
| 5555 | m_flexControlCloseButton->setEnabled(connected); |
| 5556 | if (m_flexControlDetectButton) |
| 5557 | m_flexControlDetectButton->setEnabled(!connected); |
| 5558 | } |
| 5559 | |
| 5560 | // ── UI Enhancements tab ─────────────────────────────────────────────────────── |
| 5561 |
no test coverage detected