mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/calculation] Factor HistoryController::reload
This commit is contained in:
committed by
Léa Saviot
parent
e550712ccc
commit
7a49e23e3b
@@ -20,6 +20,13 @@ HistoryController::HistoryController(Responder * parentResponder, CalculationSto
|
||||
|
||||
void HistoryController::reload() {
|
||||
m_selectableTableView.reloadData();
|
||||
/* TODO
|
||||
* Replace the following by selectCellAtLocation in order to avoid laying out
|
||||
* the table view twice.
|
||||
*/
|
||||
if (numberOfRows() > 0) {
|
||||
m_selectableTableView.scrollToCell(0, numberOfRows()-1);
|
||||
}
|
||||
}
|
||||
|
||||
void HistoryController::didBecomeFirstResponder() {
|
||||
|
||||
Reference in New Issue
Block a user