[python] Matplotlib: flush the plot store when the controller is popped

This commit is contained in:
Émilie Feral
2020-03-24 10:02:41 +01:00
parent 24cd5079d4
commit 7e73afc654
2 changed files with 11 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
#include "plot_controller.h"
namespace Matplotlib {
void PlotController::viewDidDisappear() {
MicroPython::ExecutionViewControllerHelper::viewDidDisappear(this);
m_store->flush();
}
}