mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-17 12:09:09 -04:00
setting&autostart&widgets (OptionField and Waveform) imp (#2286)
* test * test * format * format * tune order
This commit is contained in:
parent
536d25db64
commit
d4edb5f5f9
5 changed files with 69 additions and 22 deletions
|
@ -5,6 +5,7 @@
|
|||
* Copyright (C) 2023 Kyle Reed
|
||||
* Copyright (C) 2024 Mark Thompson
|
||||
* Copyright (C) 2024 u-foka
|
||||
* Copyright (C) 2024 HTotoo
|
||||
* Copyleft (ɔ) 2024 zxkmm under GPL license
|
||||
*
|
||||
* This file is part of PortaPack.
|
||||
|
@ -876,6 +877,7 @@ SetAutostartView::SetAutostartView(NavigationView& nav) {
|
|||
add_children({&labels,
|
||||
&button_save,
|
||||
&button_cancel,
|
||||
&button_reset,
|
||||
&options});
|
||||
|
||||
button_save.on_select = [&nav, this](Button&) {
|
||||
|
@ -892,6 +894,12 @@ SetAutostartView::SetAutostartView(NavigationView& nav) {
|
|||
nav.pop();
|
||||
};
|
||||
|
||||
button_reset.on_select = [this](Button&) {
|
||||
selected = 0;
|
||||
options.set_selected_index(0);
|
||||
autostart_app = "";
|
||||
};
|
||||
|
||||
// options
|
||||
i = 0;
|
||||
OptionsField::option_t o{"-none-", i};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue