mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 05:40:38 +01:00
[apps] Graph: setType of the graph controller before updating the stack
(to reload the right banner view)
This commit is contained in:
committed by
EmilieNumworks
parent
d1808ae26f
commit
e1b09b639d
@@ -39,9 +39,10 @@ bool GraphController::handleEvent(Ion::Events::Event event) {
|
||||
return FunctionGraphController::handleEvent(event);
|
||||
}
|
||||
if (type() != GraphView::Type::Default && (event == Ion::Events::Back || event == Ion::Events::OK)) {
|
||||
App * a = static_cast<App *>(app());
|
||||
stackController()->handleEvent(Ion::Events::Back);
|
||||
StackViewController * stack = stackController();
|
||||
setType(GraphView::Type::Default);
|
||||
App * a = static_cast<App *>(app());
|
||||
stack->handleEvent(Ion::Events::Back);
|
||||
setParentResponder(a->graphControllerParent());
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user