mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2025-02-17 05:48:33 +00:00
[FL-3000] File browser: Empty folder label (#2188)
Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
parent
1390f10a6f
commit
08eb666f7b
1 changed files with 12 additions and 0 deletions
|
@ -544,6 +544,18 @@ static void browser_draw_list(Canvas* canvas, FileBrowserModel* model) {
|
|||
model->item_cnt);
|
||||
}
|
||||
|
||||
uint32_t folder_item_cnt = (model->is_root) ? (model->item_cnt) : (model->item_cnt - 1);
|
||||
if(folder_item_cnt == 0) {
|
||||
canvas_set_color(canvas, ColorBlack);
|
||||
canvas_draw_str_aligned(
|
||||
canvas,
|
||||
canvas_width(canvas) / 2,
|
||||
canvas_height(canvas) / 2,
|
||||
AlignCenter,
|
||||
AlignCenter,
|
||||
"<Empty>");
|
||||
}
|
||||
|
||||
furi_string_free(filename);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue