mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-01-23 05:01:26 -05:00
Recon adjustements (#1280)
* Fix offset by 1 error in button_remove, added back load_freqfile(true) in restart * removed badly duplicated load freqman file
This commit is contained in:
parent
53d9cecdaf
commit
4e823dd3a3
@ -624,9 +624,9 @@ ReconView::ReconView(NavigationView& nav)
|
||||
};
|
||||
|
||||
button_restart.on_select = [this](Button&) {
|
||||
frequency_file_load(true);
|
||||
if (frequency_list.size() > 0) {
|
||||
def_step = step_mode.selected_index(); // Use def_step from manual selector
|
||||
frequency_file_load(true);
|
||||
if (fwd) {
|
||||
button_dir.set_text("FW>");
|
||||
} else {
|
||||
@ -1301,7 +1301,7 @@ void ReconView::handle_remove_current_item() {
|
||||
}
|
||||
|
||||
if (frequency_list.size() > 0) {
|
||||
current_index = clip<int32_t>(current_index, 0u, frequency_list.size());
|
||||
current_index = clip<int32_t>(current_index, 0u, frequency_list.size() - 1);
|
||||
text_cycle.set_text(to_string_dec_uint(current_index + 1, 3));
|
||||
update_description();
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user