Skip to content

Commit cf93708

Browse files
authored
Merge pull request #579 from Lisra-git/omega-dev
Lock Hardware Test while Exam Mode enabled
2 parents 6742299 + 50b6791 commit cf93708

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/settings/sub_menu/about_controller.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ bool AboutController::handleEvent(Ion::Events::Event event) {
3232
I18n::Message childLabel = m_messageTreeModel->childAtIndex(selectedRow()+(!hasUsernameCell()))->label();
3333
/* We hide here the activation hardware test app: in the menu "about", by
3434
* clicking on '6' on the last row. */
35-
if ((event == Ion::Events::Six || event == Ion::Events::LowerT || event == Ion::Events::UpperT) && childLabel == I18n::Message::FccId) {
35+
if ((event == Ion::Events::Six || event == Ion::Events::LowerT || event == Ion::Events::UpperT) && childLabel == I18n::Message::FccId && !GlobalPreferences::sharedGlobalPreferences()->isInExamMode()) {
3636
Container::activeApp()->displayModalViewController(&m_hardwareTestPopUpController, 0.f, 0.f, Metric::ExamPopUpTopMargin, Metric::PopUpRightMargin, Metric::ExamPopUpBottomMargin, Metric::PopUpLeftMargin);
3737
return true;
3838
}

0 commit comments

Comments
 (0)