mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-23 06:14:13 -04:00
Added RFM69 helper
LGE tool: new frames Text entry string length bugfix
This commit is contained in:
parent
dd35bda197
commit
b1e72c788b
18 changed files with 417 additions and 130 deletions
|
@ -146,8 +146,8 @@ void FrequencySaveView::save_current_file() {
|
|||
}
|
||||
|
||||
void FrequencySaveView::on_save_name() {
|
||||
text_prompt(nav_, &desc_buffer, 28, [this](std::string * buffer) {
|
||||
database.push_back({ value_, 0, *buffer, SINGLE });
|
||||
text_prompt(nav_, desc_buffer, 28, [this](std::string& buffer) {
|
||||
database.push_back({ value_, 0, buffer, SINGLE });
|
||||
save_current_file();
|
||||
});
|
||||
}
|
||||
|
@ -249,17 +249,17 @@ void FrequencyManagerView::on_edit_freq(rf::Frequency f) {
|
|||
}
|
||||
|
||||
void FrequencyManagerView::on_edit_desc(NavigationView& nav) {
|
||||
text_prompt(nav, &desc_buffer, 28, [this](std::string * buffer) {
|
||||
database[menu_view.highlighted_index()].description = *buffer;
|
||||
text_prompt(nav, desc_buffer, 28, [this](std::string& buffer) {
|
||||
database[menu_view.highlighted_index()].description = buffer;
|
||||
refresh_list();
|
||||
save_freqman_file(file_list[categories[current_category_id].second], database);
|
||||
});
|
||||
}
|
||||
|
||||
void FrequencyManagerView::on_new_category(NavigationView& nav) {
|
||||
text_prompt(nav, &desc_buffer, 8, [this](std::string * buffer) {
|
||||
text_prompt(nav, desc_buffer, 8, [this](std::string& buffer) {
|
||||
File freqman_file;
|
||||
create_freqman_file(*buffer, freqman_file);
|
||||
create_freqman_file(buffer, freqman_file);
|
||||
});
|
||||
populate_categories();
|
||||
refresh_list();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue