! *\brief called when use will message checkbox's state is changed in the will settings widget, * Sets the mqttUseWill according to state for the m_mqttClient * * \param state the state of the checbox */
| 536 | * \param state the state of the checbox |
| 537 | */ |
| 538 | void LiveDataDock::useWillMessage(bool use) { |
| 539 | if (use) { |
| 540 | m_mqttClient->setMQTTWillUse(true); |
| 541 | if (m_mqttClient->willUpdateType() == MQTTClient::WillUpdateType::OnClick) |
| 542 | ui.bWillUpdateNow->show(); |
| 543 | } else { |
| 544 | m_mqttClient->setMQTTWillUse(false); |
| 545 | ui.bWillUpdateNow->hide(); |
| 546 | } |
| 547 | } |
| 548 | |
| 549 | /*! |
| 550 | *\brief called when will message's QoS is changed in the will settings widget |
no test coverage detected