mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
Adopt to the latest release policy
See http://wiki.openpilot.org/display/Doc/Release+policy
This commit is contained in:
parent
5184dc1087
commit
721cb16c2b
@ -158,7 +158,7 @@ bool deviceWidget::populateBoardStructuredDescription(QByteArray desc)
|
|||||||
{
|
{
|
||||||
myDevice->lblGitTag->setText(onBoardDescription.gitHash);
|
myDevice->lblGitTag->setText(onBoardDescription.gitHash);
|
||||||
myDevice->lblBuildDate->setText(onBoardDescription.gitDate.insert(4,"-").insert(7,"-"));
|
myDevice->lblBuildDate->setText(onBoardDescription.gitDate.insert(4,"-").insert(7,"-"));
|
||||||
if(onBoardDescription.gitTag.startsWith("release",Qt::CaseInsensitive))
|
if(onBoardDescription.gitTag.startsWith("RELEASE",Qt::CaseSensitive))
|
||||||
{
|
{
|
||||||
myDevice->lblDescription->setText(QString("Firmware tag: ")+onBoardDescription.gitTag);
|
myDevice->lblDescription->setText(QString("Firmware tag: ")+onBoardDescription.gitTag);
|
||||||
QPixmap pix = QPixmap(QString(":uploader/images/application-certificate.svg"));
|
QPixmap pix = QPixmap(QString(":uploader/images/application-certificate.svg"));
|
||||||
@ -188,7 +188,7 @@ bool deviceWidget::populateLoadedStructuredDescription(QByteArray desc)
|
|||||||
{
|
{
|
||||||
myDevice->lblGitTagL->setText(LoadedDescription.gitHash);
|
myDevice->lblGitTagL->setText(LoadedDescription.gitHash);
|
||||||
myDevice->lblBuildDateL->setText( LoadedDescription.gitDate.insert(4,"-").insert(7,"-"));
|
myDevice->lblBuildDateL->setText( LoadedDescription.gitDate.insert(4,"-").insert(7,"-"));
|
||||||
if(LoadedDescription.gitTag.startsWith("release",Qt::CaseInsensitive))
|
if(LoadedDescription.gitTag.startsWith("RELEASE",Qt::CaseSensitive))
|
||||||
{
|
{
|
||||||
myDevice->lblDescritpionL->setText(LoadedDescription.gitTag);
|
myDevice->lblDescritpionL->setText(LoadedDescription.gitTag);
|
||||||
myDevice->description->setText(LoadedDescription.gitTag);
|
myDevice->description->setText(LoadedDescription.gitTag);
|
||||||
@ -302,7 +302,7 @@ void deviceWidget::loadFirmware()
|
|||||||
myDevice->statusLabel->setText(tr("The board has newer firmware than loaded. Are you sure you want to update?"));
|
myDevice->statusLabel->setText(tr("The board has newer firmware than loaded. Are you sure you want to update?"));
|
||||||
px.load(QString(":/uploader/images/warning.svg"));
|
px.load(QString(":/uploader/images/warning.svg"));
|
||||||
}
|
}
|
||||||
else if(!LoadedDescription.gitTag.startsWith("release",Qt::CaseInsensitive))
|
else if(!LoadedDescription.gitTag.startsWith("RELEASE",Qt::CaseSensitive))
|
||||||
{
|
{
|
||||||
myDevice->statusLabel->setText(tr("The loaded firmware is untagged or custom build. Update only if it was received from a trusted source (official website or your own build)"));
|
myDevice->statusLabel->setText(tr("The loaded firmware is untagged or custom build. Update only if it was received from a trusted source (official website or your own build)"));
|
||||||
px.load(QString(":/uploader/images/warning.svg"));
|
px.load(QString(":/uploader/images/warning.svg"));
|
||||||
|
@ -103,7 +103,7 @@ void runningDeviceWidget::populate()
|
|||||||
deviceDescriptorStruct devDesc;
|
deviceDescriptorStruct devDesc;
|
||||||
if(UAVObjectUtilManager::descriptionToStructure(description,devDesc))
|
if(UAVObjectUtilManager::descriptionToStructure(description,devDesc))
|
||||||
{
|
{
|
||||||
if(devDesc.gitTag.startsWith("release",Qt::CaseInsensitive))
|
if(devDesc.gitTag.startsWith("RELEASE",Qt::CaseSensitive))
|
||||||
{
|
{
|
||||||
myDevice->lblFWTag->setText(QString("Firmware tag: ")+devDesc.gitTag);
|
myDevice->lblFWTag->setText(QString("Firmware tag: ")+devDesc.gitTag);
|
||||||
QPixmap pix = QPixmap(QString(":uploader/images/application-certificate.svg"));
|
QPixmap pix = QPixmap(QString(":uploader/images/application-certificate.svg"));
|
||||||
|
Loading…
Reference in New Issue
Block a user