mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/home] Select cell on Snapshot's construction
This commit is contained in:
committed by
EmilieNumworks
parent
a124f456c6
commit
0702212cfe
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user