[FL-2215, FL-2168] Display long names and rename RAW files (#971)

* [FL-2215] SubGhz:  fix long names on RAW and Delete screens
* [FL-2168] SubGhz: fix rename RAW
This commit is contained in:
Skorpionm
2022-01-27 20:38:47 +04:00
committed by GitHub
parent cb0369a7f3
commit 53e7415d12
5 changed files with 14 additions and 15 deletions

View File

@@ -17,15 +17,14 @@ void subghz_scene_delete_raw_on_enter(void* context) {
SubGhz* subghz = context;
string_t frequency_str;
string_t modulation_str;
string_t text;
string_init(frequency_str);
string_init(modulation_str);
string_init(text);
string_printf(text, "Delete\n%s?", subghz->file_name);
widget_add_string_multiline_element(
subghz->widget, 64, 0, AlignCenter, AlignTop, FontPrimary, string_get_cstr(text));
char delete_str[64];
snprintf(delete_str, sizeof(delete_str), "\e#Delete %s?\e#", subghz->file_name);
widget_add_text_box_element(
subghz->widget, 0, 0, 128, 23, AlignCenter, AlignCenter, delete_str);
widget_add_string_element(
subghz->widget, 38, 25, AlignLeft, AlignTop, FontSecondary, "RAW signal");
@@ -44,7 +43,6 @@ void subghz_scene_delete_raw_on_enter(void* context) {
string_clear(frequency_str);
string_clear(modulation_str);
string_clear(text);
widget_add_button_element(
subghz->widget, GuiButtonTypeRight, "Delete", subghz_scene_delete_raw_callback, subghz);