mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[python] Matplotlib: flush the plot store when the controller is popped
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#include "plot_controller.h"
|
||||
|
||||
namespace Matplotlib {
|
||||
|
||||
void PlotController::viewDidDisappear() {
|
||||
MicroPython::ExecutionViewControllerHelper::viewDidDisappear(this);
|
||||
m_store->flush();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ public:
|
||||
PlotController(PlotStore * store, MicroPython::ExecutionEnvironment * executiveEnvironment) : Shared::ZoomAndPanCurveViewController(nullptr), ExecutionViewControllerHelper(executiveEnvironment), m_store(store), m_view(m_store) {}
|
||||
|
||||
void viewWillAppear() override { MicroPython::ExecutionViewControllerHelper::viewWillAppear(this); }
|
||||
void viewDidDisappear() override { MicroPython::ExecutionViewControllerHelper::viewDidDisappear(this); }
|
||||
void viewDidDisappear() override;
|
||||
|
||||
protected:
|
||||
Shared::CurveView * curveView() override { return &m_view; }
|
||||
|
||||
Reference in New Issue
Block a user