[apps] Sequence: do not change selection when becoming first responder

but when appearing
This commit is contained in:
Émilie Feral
2017-12-22 14:02:31 +01:00
committed by EmilieNumworks
parent 2452e3c2c1
commit bf9d9728e8
2 changed files with 7 additions and 2 deletions

View File

@@ -26,13 +26,17 @@ View * ListParameterController::view() {
}
void ListParameterController::didBecomeFirstResponder() {
m_selectableTableView.reloadData();
app()->setFirstResponder(&m_selectableTableView);
}
void ListParameterController::viewWillAppear() {
ViewController::viewWillAppear();
if (selectedRow() == -1) {
selectCellAtLocation(0, 0);
} else {
selectCellAtLocation(selectedColumn(), selectedRow());
}
app()->setFirstResponder(&m_selectableTableView);
m_selectableTableView.reloadData();
}
void ListParameterController::willDisplayCellForIndex(HighlightCell * cell, int index) {