mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-17 19:00:41 -04:00
Another tweak to sane-ify transponder apps initial focus.
This commit is contained in:
parent
07b8c6c661
commit
60778c5591
1 changed files with 5 additions and 1 deletions
|
@ -186,11 +186,15 @@ public:
|
|||
return false;
|
||||
}
|
||||
|
||||
void on_focus() override {
|
||||
advance(0);
|
||||
}
|
||||
|
||||
private:
|
||||
Entries& recent;
|
||||
|
||||
using EntryKey = typename Entry::Key;
|
||||
EntryKey selected_key;
|
||||
EntryKey selected_key = Entry::invalid_key;
|
||||
|
||||
void advance(const int32_t amount) {
|
||||
auto selected = recent.find(selected_key);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue