[FL-1852] Archive: browser offset fix (#716)

* Archive app: check last offset value upon updating offset
* fix browser empty storage hang up

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
its your bedtime
2021-09-24 15:03:04 +03:00
committed by GitHub
parent 1448b9cf66
commit effda5ab44
2 changed files with 13 additions and 7 deletions

View File

@@ -67,13 +67,14 @@ typedef struct {
ArchiveTabEnum last_tab;
files_array_t files;
uint8_t depth;
uint8_t menu_idx;
bool menu;
uint16_t idx;
uint16_t last_idx[MAX_DEPTH];
uint16_t last_idx;
uint16_t list_offset;
uint16_t last_offset;
uint8_t depth;
} ArchiveBrowserViewModel;