From b35cdca9bb5b7b0d59464ea1364769d57905c6b5 Mon Sep 17 00:00:00 2001 From: Gabriel Ozouf Date: Mon, 22 Jun 2020 10:23:10 +0200 Subject: [PATCH] [apps/exam_mode] Country-locked Dutch exam mode The Dutch exam mode is now only accessible when the selected country is Netherlands on an official firmware. Change-Id: I6d70f79b6e728482d8c7d86ef6a2e5c53ee18a39 --- apps/exam_mode_configuration_official.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/exam_mode_configuration_official.cpp b/apps/exam_mode_configuration_official.cpp index 7640d21e6..d13b96bc3 100644 --- a/apps/exam_mode_configuration_official.cpp +++ b/apps/exam_mode_configuration_official.cpp @@ -6,8 +6,7 @@ constexpr Shared::SettingsMessageTree ExamModeConfiguration::s_modelExamChildren[2] = {Shared::SettingsMessageTree(I18n::Message::ActivateExamMode), Shared::SettingsMessageTree(I18n::Message::ActivateDutchExamMode)}; int ExamModeConfiguration::numberOfAvailableExamMode() { - if ((GlobalPreferences::sharedGlobalPreferences()->language() != I18n::Language::EN - && GlobalPreferences::sharedGlobalPreferences()->language() != I18n::Language::NL) + if (GlobalPreferences::sharedGlobalPreferences()->country() != I18n::Country::NL || GlobalPreferences::sharedGlobalPreferences()->isInExamMode()) { return 1;