mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps] Sequence: do not change selection when becoming first responder
but when appearing
This commit is contained in:
committed by
EmilieNumworks
parent
2452e3c2c1
commit
bf9d9728e8
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user