mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-25 15:20:31 -04:00
Add debug_log, fix tx_bht (#1149)
This commit is contained in:
parent
3db2053c21
commit
19491ce3f7
6 changed files with 32 additions and 24 deletions
|
@ -1358,7 +1358,7 @@ void ImageOptionsField::set_selected_index(const size_t new_index) {
|
|||
}
|
||||
|
||||
void ImageOptionsField::set_by_value(value_t v) {
|
||||
size_t new_index{0};
|
||||
size_t new_index = 0;
|
||||
for (const auto& option : options) {
|
||||
if (option.second == v) {
|
||||
set_selected_index(new_index);
|
||||
|
@ -1377,7 +1377,7 @@ void ImageOptionsField::set_options(options_t new_options) {
|
|||
|
||||
// Set an invalid index to force on_change.
|
||||
selected_index_ = (size_t)-1;
|
||||
set_by_value(0);
|
||||
set_selected_index(0);
|
||||
set_dirty();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue