[settings] Enable exam mode reactivation

This commit is contained in:
Émilie Feral
2019-12-06 17:31:47 +01:00
committed by EmilieNumworks
parent 79ea22bc64
commit e550005e43
6 changed files with 8 additions and 11 deletions

View File

@@ -21,9 +21,6 @@ void ExamModeController::didEnterResponderChain(Responder * previousFirstRespond
bool ExamModeController::handleEvent(Ion::Events::Event event) {
if (event == Ion::Events::OK || event == Ion::Events::EXE) {
if (GlobalPreferences::sharedGlobalPreferences()->examMode() == GlobalPreferences::ExamMode::Activate) {
return false;
}
AppsContainer::sharedAppsContainer()->displayExamModePopUp(true);
return true;
}