[FL-1465] Archive application bug fixes. Gui: update TextInput API. (#530)

* Update MLib to latest master.
* Archive: update string_t usage, add unsafe usage TODO, change model type to blocking and fix invalid usage.
* Gui: update text_input API and it's usage.
* fix blocking model issues
* fix  unsafe string_t usage

Co-authored-by: Igor Baranov <bedtimeposts@gmail.com>
Co-authored-by: its your bedtime <23366927+itsyourbedtime@users.noreply.github.com>
This commit is contained in:
あく
2021-06-24 00:46:52 +03:00
committed by GitHub
parent ed75bc2c39
commit 4cf000f270
12 changed files with 220 additions and 178 deletions

View File

@@ -15,7 +15,7 @@
#include "applications.h"
#define MAX_DEPTH 32
#define MAX_NAME_LEN 255
#define MAX_FILES 100 //temp
typedef enum {
ArchiveViewMain,
@@ -47,7 +47,7 @@ static const char* known_ext[] = {
[ArchiveFileTypeNFC] = ".nfc",
[ArchiveFileTypeSubOne] = ".sub1",
[ArchiveFileTypeLFRFID] = ".rfid",
[ArchiveFileTypeIrda] = ".irda",
[ArchiveFileTypeIrda] = ".ir",
};
static const char* tab_default_paths[] = {
@@ -94,7 +94,7 @@ typedef struct {
ArchiveTabEnum tab_id;
string_t name;
string_t path;
string_t text_input_buffer;
char text_input_buffer[MAX_NAME_LEN];
uint8_t depth;
uint16_t last_idx[MAX_DEPTH];