[apps] Sequence: invalidate the context cache when the sequences are

redefined
This commit is contained in:
Émilie Feral
2017-12-13 17:49:54 +01:00
committed by EmilieNumworks
parent 31ceb5ed40
commit cb754ab6d5
12 changed files with 31 additions and 16 deletions

View File

@@ -1,5 +1,6 @@
#include "list_parameter_controller.h"
#include "list_controller.h"
#include "../app.h"
using namespace Poincare;
using namespace Shared;
@@ -52,6 +53,7 @@ bool ListParameterController::handleEvent(Ion::Events::Event event) {
#endif
if (m_functionStore->numberOfFunctions() > 0) {
m_functionStore->removeFunction(m_function);
static_cast<App *>(app())->localContext()->resetCache();
StackViewController * stack = (StackViewController *)(parentResponder());
stack->pop();
return true;