From 4459945fe9a58b547fbc5203ee21de50671267e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Wed, 21 Nov 2018 18:18:52 +0100 Subject: [PATCH] [apps] When entering in exam mode (reset), destroy all recorded expression variables --- apps/apps_container.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/apps_container.cpp b/apps/apps_container.cpp index 610de45f6..3764c6ef0 100644 --- a/apps/apps_container.cpp +++ b/apps/apps_container.cpp @@ -95,6 +95,9 @@ App::Snapshot * AppsContainer::usbConnectedAppSnapshot() { } void AppsContainer::reset() { + // Empty stored variable + Ion::Storage::sharedStorage()->destroyRecordsWithExtension("exp"); + // Empty clipboard Clipboard::sharedClipboard()->reset(); for (int i = 0; i < numberOfApps(); i++) { appSnapshotAtIndex(i)->reset();