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:
gullradriel 2023-07-17 22:19:39 +02:00 committed by GitHub
parent 53d9cecdaf
commit 4e823dd3a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -624,9 +624,9 @@ ReconView::ReconView(NavigationView& nav)
}; };
button_restart.on_select = [this](Button&) { button_restart.on_select = [this](Button&) {
frequency_file_load(true);
if (frequency_list.size() > 0) { if (frequency_list.size() > 0) {
def_step = step_mode.selected_index(); // Use def_step from manual selector def_step = step_mode.selected_index(); // Use def_step from manual selector
frequency_file_load(true);
if (fwd) { if (fwd) {
button_dir.set_text("FW>"); button_dir.set_text("FW>");
} else { } else {
@ -1301,7 +1301,7 @@ void ReconView::handle_remove_current_item() {
} }
if (frequency_list.size() > 0) { 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)); text_cycle.set_text(to_string_dec_uint(current_index + 1, 3));
update_description(); update_description();
} else { } else {