[Exam] Fixed exam mode to omega one

This commit is contained in:
Joachim LF
2021-01-28 20:02:31 +01:00
parent 0c01ccb13e
commit 40b81313cb
4 changed files with 16 additions and 65 deletions

View File

@@ -98,7 +98,8 @@ bool Controller::handleEvent(Ion::Events::Event event) {
} else {
#endif
::App::Snapshot * selectedSnapshot = container->appSnapshotAtIndex(index);
if (ExamModeConfiguration::appIsForbiddenInExamMode(selectedSnapshot->descriptor()->name(), GlobalPreferences::sharedGlobalPreferences()->examMode())) {
if (ExamModeConfiguration::appIsForbiddenInExamMode(selectedSnapshot->descriptor()->examinationLevel(), GlobalPreferences::sharedGlobalPreferences()->examMode())) {
App::app()->displayWarning(I18n::Message::ForbidenAppInExamMode1, I18n::Message::ForbidenAppInExamMode2);
} else {
bool switched = container->switchTo(selectedSnapshot);
assert(switched);