mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-20 03:47:45 +00:00
Another tweak to sane-ify transponder apps initial focus.
This commit is contained in:
@@ -186,11 +186,15 @@ public:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void on_focus() override {
|
||||||
|
advance(0);
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Entries& recent;
|
Entries& recent;
|
||||||
|
|
||||||
using EntryKey = typename Entry::Key;
|
using EntryKey = typename Entry::Key;
|
||||||
EntryKey selected_key;
|
EntryKey selected_key = Entry::invalid_key;
|
||||||
|
|
||||||
void advance(const int32_t amount) {
|
void advance(const int32_t amount) {
|
||||||
auto selected = recent.find(selected_key);
|
auto selected = recent.find(selected_key);
|
||||||
|
Reference in New Issue
Block a user