[apps] When entering in exam mode (reset), destroy all recorded

expression variables
This commit is contained in:
Émilie Feral
2018-11-21 18:18:52 +01:00
parent 8196036eb3
commit 4459945fe9

View File

@@ -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();