[apps/escher/ion] Remove Graph memoized models on storage change

This commit is contained in:
Léa Saviot
2018-10-24 15:06:58 +02:00
committed by Émilie Feral
parent 1517b57cc8
commit 9bfaed583d
9 changed files with 39 additions and 39 deletions

View File

@@ -74,6 +74,7 @@ AppsContainer::AppsContainer() :
{
m_emptyBatteryWindow.setFrame(KDRect(0, 0, Ion::Display::Width, Ion::Display::Height));
Poincare::Expression::setCircuitBreaker(AppsContainer::poincareCircuitBreaker);
Ion::Storage::sharedStorage()->setDelegate(this);
}
bool AppsContainer::poincareCircuitBreaker() {
@@ -293,9 +294,9 @@ void AppsContainer::examDeactivatingPopUpIsDismissed() {
}
}
void AppsContainer::storageDidChange(const Ion::Storage * storage) {
for (int i = 0; i < numberOfApps(); i++) {
appSnapshotAtIndex(i)->storageDidChange();
void AppsContainer::storageDidChangeForRecord(const Ion::Storage::Record record) {
if (activeApp()) {
activeApp()->snapshot()->storageDidChangeForRecord(record);
}
}