mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[python] Matplotlib: reload labels in PlotController::viewWillAppear
This commit is contained in:
@@ -2,6 +2,11 @@
|
||||
|
||||
namespace Matplotlib {
|
||||
|
||||
void PlotController::viewWillAppear() {
|
||||
MicroPython::ExecutionViewControllerHelper::viewWillAppear(this);
|
||||
curveView()->reload();
|
||||
}
|
||||
|
||||
void PlotController::viewDidDisappear() {
|
||||
MicroPython::ExecutionViewControllerHelper::viewDidDisappear(this);
|
||||
m_store->flush();
|
||||
|
||||
@@ -12,7 +12,7 @@ class PlotController : public Shared::ZoomAndPanCurveViewController, public Micr
|
||||
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 viewWillAppear() override;
|
||||
void viewDidDisappear() override;
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user