[apps/probability] Fix bug: do not reload data when toolbox is dismissed

Change-Id: I5b61334966317b0fd3ad93925674ed9e5469c41b
This commit is contained in:
Émilie Feral
2017-06-27 09:59:21 +02:00
parent 2efe8e724a
commit 9f82e9b4c4
2 changed files with 3 additions and 2 deletions

View File

@@ -242,9 +242,10 @@ bool CalculationController::textFieldDidReceiveEvent(::TextField * textField, Io
return TextFieldDelegate::textFieldDidReceiveEvent(textField, event);
}
void CalculationController::didEnterResponderChain(Responder * previousFirstResponder) {
void CalculationController::viewWillAppear() {
reload();
}
void CalculationController::didBecomeFirstResponder() {
App::Snapshot * snapshot = (App::Snapshot *)app()->snapshot();
snapshot->setActivePage(App::Snapshot::Page::Calculations);