Files
Upsilon/python/port/mod/matplotlib/plot_controller.cpp
Émilie Feral fb3f6ab6f3 [apps/code][python] ConsoleController doesn't keep any pointer/boolean to know
if the sandbox/matplotlib view controller is displayed. Its state won't be
always right; instead, use the StackViewController depth.

This fixes the following bug: when popping the sandbox/matplotlib view
controller, the first responder token was not given to the console
controller!
2020-04-01 10:18:09 +02:00

14 lines
189 B
C++

#include "plot_controller.h"
namespace Matplotlib {
void PlotController::viewWillAppear() {
curveView()->reload();
}
void PlotController::viewDidDisappear() {
m_store->flush();
}
}