MCPcopy Create free account
hub / github.com/Atarity/Lightpack / ledDeviceFirmwareVersionResult

Method ledDeviceFirmwareVersionResult

Software/src/SettingsWindow.cpp:971–1000  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

969}
970
971void SettingsWindow::ledDeviceFirmwareVersionResult(const QString & fwVersion)
972{
973 DEBUG_LOW_LEVEL << Q_FUNC_INFO << fwVersion;
974
975 m_deviceFirmwareVersion = fwVersion;
976
977 QString aboutDialogFirmwareString = m_deviceFirmwareVersion;
978
979 if (Settings::getConnectedDevice() == SupportedDevices::DeviceTypeLightpack)
980 {
981 if (m_deviceFirmwareVersion == "5.0" || m_deviceFirmwareVersion == "4.3")
982 {
983 aboutDialogFirmwareString += QString(" ") +
984 "(<a href=\"" + LightpackDownloadsPageUrl + "\">" +
985 tr("update firmware") +
986 "</a>)";
987
988 if (Settings::isUpdateFirmwareMessageShown() == false)
989 {
990 if (m_trayIcon!=NULL)
991 m_trayIcon->showMessage(SysTrayIcon::MessageUpdateFirmware);
992 Settings::setUpdateFirmwareMessageShown(true);
993 }
994 }
995 }
996
997 this->setFirmwareVersion(aboutDialogFirmwareString);
998
999 updateDeviceTabWidgetsVisibility();
1000}
1001
1002void SettingsWindow::refreshAmbilightEvaluated(double updateResultMs)
1003{

Callers

nothing calls this directly

Calls 2

setFirmwareVersionMethod · 0.95
showMessageMethod · 0.45

Tested by

no test coverage detected