[VariableBox] Added sequences to the variable box

It is now possible to call the value of a defined sequence anywhere.

Change-Id: I1990e93c50f9add175b7ea274e07004ba63289e5
This commit is contained in:
Arthur Camouseigt
2020-09-04 16:20:33 +02:00
committed by Émilie Feral
parent c006ed7b10
commit 3dca515441
50 changed files with 297 additions and 152 deletions

View File

@@ -0,0 +1,10 @@
#include "shared_app.h"
#include "global_context.h"
#include <apps/apps_container.h>
void SharedApp::Snapshot::pack(App * app) {
/* Since the sequence store is now accessible from every app, when exiting
* any application, we need to tidy it.*/
static_cast<Shared::GlobalContext *>(AppsContainer::sharedAppsContainer()->globalContext())->sequenceStore()->tidy();
App::Snapshot::pack(app);
}