Skip to content

Commit

Permalink
Merge branch 'omega-hotfix' into omega-master
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinguidee committed Nov 19, 2019
2 parents 91f7deb + c775598 commit 180d987
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/settings/sub_menu/about_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ bool AboutController::handleEvent(Ion::Events::Event event) {
I18n::Message childLabel = m_messageTreeModel->children(selectedRow())->label();
/* We hide here the activation hardware test app: in the menu "about", by
* clicking on '6' on the last row. */
if ((event == Ion::Events::Six || event == Ion::Events::LowerT || event == Ion::Events::UpperT) && selectedRow() == numberOfRows() - 1) {
if ((event == Ion::Events::Six || event == Ion::Events::LowerT || event == Ion::Events::UpperT) && childLabel == I18n::Message::FccId) {
Container::activeApp()->displayModalViewController(&m_hardwareTestPopUpController, 0.f, 0.f, Metric::ExamPopUpTopMargin, Metric::PopUpRightMargin, Metric::ExamPopUpBottomMargin, Metric::PopUpLeftMargin);
return true;
}
Expand All @@ -34,7 +34,7 @@ bool AboutController::handleEvent(Ion::Events::Event event) {
return true;
}
if (!(event == Ion::Events::Right)) {
if (m_messageTreeModel->children(selectedRow())->label() == I18n::Message::SoftwareVersion) {
if (childLabel == I18n::Message::SoftwareVersion) {
MessageTableCellWithBuffer * myCell = (MessageTableCellWithBuffer *)m_selectableTableView.selectedCell();
if (strcmp(myCell->accessoryText(), Ion::patchLevel()) == 0) {
myCell->setAccessoryText(Ion::softwareVersion());
Expand All @@ -43,7 +43,7 @@ bool AboutController::handleEvent(Ion::Events::Event event) {
myCell->setAccessoryText(Ion::patchLevel());
return true;
}
if (m_messageTreeModel->children(selectedRow())->label() == I18n::Message::CustomSoftwareVersion) {
if (childLabel == I18n::Message::CustomSoftwareVersion) {
MessageTableCellWithBuffer * myCell = (MessageTableCellWithBuffer *)m_selectableTableView.selectedCell();
if (strcmp(myCell->accessoryText(), Ion::customSoftwareVersion()) == 0) {
myCell->setAccessoryText("Public"); //Change for public/dev
Expand Down

0 comments on commit 180d987

Please sign in to comment.