[apps/regression] Model stays selected in menu

When opening the window for choosing the regression model, the row
corresponding to the currently selected model will be highlighted.

Change-Id: I65772186fc302c3706a5571f98ecff620e4a8ca9
This commit is contained in:
Gabriel Ozouf
2020-08-13 15:59:37 +02:00
committed by Émilie Feral
parent 0a7833ec3d
commit 87591369b8

View File

@@ -29,7 +29,7 @@ const char * RegressionController::title() {
}
void RegressionController::didBecomeFirstResponder() {
selectCellAtLocation(0, 0);
selectCellAtLocation(0, static_cast<uint8_t>(m_store->seriesRegressionType(m_series)));
Container::activeApp()->setFirstResponder(&m_selectableTableView);
}