[apps/home] Select cell on Snapshot's construction

This commit is contained in:
Ruben Dashyan
2019-06-27 13:51:52 +02:00
committed by EmilieNumworks
parent a124f456c6
commit 0702212cfe
2 changed files with 1 additions and 3 deletions

View File

@@ -15,6 +15,7 @@ public:
};
class Snapshot : public ::App::Snapshot, public SelectableTableViewDataSource {
public:
Snapshot() { selectCellAtLocation(0, 0); }
App * unpack(Container * container) override;
Descriptor * descriptor() override;
};

View File

@@ -78,9 +78,6 @@ bool Controller::handleEvent(Ion::Events::Event event) {
}
void Controller::didBecomeFirstResponder() {
if (m_selectionDataSource->selectedRow() == -1) {
m_selectionDataSource->selectCellAtLocation(0, 0);
}
app()->setFirstResponder(m_view.selectableTableView());
}