diff --git a/src/ui/configuration/ApmFirmwareConfig.cc b/src/ui/configuration/ApmFirmwareConfig.cc index 4b63192a511296e7128c3f3dbb6824d78d36cc26..400b8a029e35e59a57ae3120cb22108fea094651 100644 --- a/src/ui/configuration/ApmFirmwareConfig.cc +++ b/src/ui/configuration/ApmFirmwareConfig.cc @@ -410,110 +410,47 @@ void ApmFirmwareConfig::firmwareListFinished() QString outstr = ""; if (stripVersionFromGitReply(reply->url().toString(),replystr,"apm2-heli",(m_betaFirmwareChecked ? "beta" : "stable"),&outstr)) { - if (m_betaFirmwareChecked) - { - ui.copterLabel->setText("BETA " + outstr); - } - else - { - ui.copterLabel->setText(outstr); - } + ui.copterLabel->setText(outstr); return; } if (stripVersionFromGitReply(reply->url().toString(),replystr,"apm2-quad",(m_betaFirmwareChecked ? "beta" : "stable"),&outstr)) { - if (m_betaFirmwareChecked) - { - ui.quadLabel->setText("BETA " + outstr); - } - else - { - ui.quadLabel->setText(outstr); - } + ui.quadLabel->setText(outstr); return; } if (stripVersionFromGitReply(reply->url().toString(),replystr,"apm2-hexa",(m_betaFirmwareChecked ? "beta" : "stable"),&outstr)) { - if (m_betaFirmwareChecked) - { - ui.hexaLabel->setText("BETA " + outstr); - } - else - { - ui.hexaLabel->setText(outstr); - } + ui.hexaLabel->setText(outstr); return; } if (stripVersionFromGitReply(reply->url().toString(),replystr,"apm2-octa-quad",(m_betaFirmwareChecked ? "beta" : "stable"),&outstr)) { - if (m_betaFirmwareChecked) - { - ui.octaQuadLabel->setText("BETA " + outstr); - } - else - { - ui.octaQuadLabel->setText(outstr); - } + ui.octaQuadLabel->setText(outstr); return; } if (stripVersionFromGitReply(reply->url().toString(),replystr,"apm2-octa",(m_betaFirmwareChecked ? "beta" : "stable"),&outstr)) { - if (m_betaFirmwareChecked) - { - ui.octaLabel->setText("BETA " + outstr); - } - else - { - ui.octaLabel->setText(outstr); - } + ui.octaLabel->setText(outstr); return; } if (stripVersionFromGitReply(reply->url().toString(),replystr,"apm2-tri",(m_betaFirmwareChecked ? "beta" : "stable"),&outstr)) { - if (m_betaFirmwareChecked) - { - ui.triLabel->setText("BETA " + outstr); - } - else - { - ui.triLabel->setText(outstr); - } + ui.triLabel->setText(outstr); return; } if (stripVersionFromGitReply(reply->url().toString(),replystr,"apm2-y6",(m_betaFirmwareChecked ? "beta" : "stable"),&outstr)) { - if (m_betaFirmwareChecked) - { - ui.y6Label->setText("BETA " + outstr); - } - else - { - ui.y6Label->setText(outstr); - } + ui.y6Label->setText(outstr); return; } if (stripVersionFromGitReply(reply->url().toString(),replystr,"Plane",(m_betaFirmwareChecked ? "beta" : "stable"),&outstr)) { - if (m_betaFirmwareChecked) - { - ui.planeLabel->setText("BETA " + outstr); - } - else - { - ui.planeLabel->setText(outstr); - } + ui.planeLabel->setText(outstr); return; } if (stripVersionFromGitReply(reply->url().toString(),replystr,"Rover",(m_betaFirmwareChecked ? "beta" : "stable"),&outstr)) { - if (m_betaFirmwareChecked) - { - ui.roverLabel->setText("BETA " + outstr); - } - else - { - ui.roverLabel->setText(outstr); - } + ui.roverLabel->setText(outstr); return; } qDebug() << "Match not found for:" << reply->url(); diff --git a/src/ui/configuration/ApmFirmwareConfig.ui b/src/ui/configuration/ApmFirmwareConfig.ui index 7f4096f4dbc203c2ccdeccd42fa42a3ea47f9a0f..4350d71e9c8ce8ccb33617e9695548f1125666a8 100644 --- a/src/ui/configuration/ApmFirmwareConfig.ui +++ b/src/ui/configuration/ApmFirmwareConfig.ui @@ -447,9 +447,9 @@ - 50 + 30 490 - 791 + 801 23 @@ -460,9 +460,9 @@ - 60 + 30 520 - 741 + 801 151 @@ -503,7 +503,7 @@ - <h3><font color=#FFAA00>WARNING: Only install BETA firmware if you are an experienced tester.</font></h3> + <html><head/><body><p><span style=" font-size:large; font-weight:600; color:#e90000;">WARNING:</span><span style=" font-size:large; font-weight:600; color:#ffaa00;"> Only install BETA firmware if you are an experienced tester.</span></p></body></html>