mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-16 09:12:39 +03:00
fc5c48edef
* GUI module submenu: fix documentation * GUI module submenu: add submenu_set_selected_item fn * App iButton: use submenu_set_selected_item to store and set selected item in submenu * App iButton: swap write and emulate in "saved key menu" scene * App iButton: file select can now switch to the previous selected file * App iButton: swap write and emulate indexes in "saved key menu" scene Co-authored-by: あく <alleteam@gmail.com>
13 lines
368 B
C++
13 lines
368 B
C++
#pragma once
|
|
#include "ibutton-scene-generic.h"
|
|
|
|
class iButtonSceneSavedKeyMenu : public iButtonScene {
|
|
public:
|
|
void on_enter(iButtonApp* app) final;
|
|
bool on_event(iButtonApp* app, iButtonEvent* event) final;
|
|
void on_exit(iButtonApp* app) final;
|
|
|
|
private:
|
|
void submenu_callback(void* context, uint32_t index);
|
|
uint32_t submenu_item_selected = 0;
|
|
}; |