[apps/calculation] Reload display output when HistoryController appears

(to avoid displaying 2 = 2 when leaving and reentering Calculation app)
This commit is contained in:
Émilie Feral
2019-11-21 13:34:18 +01:00
committed by Léa Saviot
parent ec0c7c0384
commit 47e4abee81
4 changed files with 10 additions and 0 deletions

View File

@@ -32,6 +32,10 @@ void HistoryController::reload() {
}
}
void HistoryController::viewWillAppear() {
reload();
}
void HistoryController::didBecomeFirstResponder() {
selectCellAtLocation(0, numberOfRows()-1);
Container::activeApp()->setFirstResponder(&m_selectableTableView);