mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-06-11 19:33:30 -07:00
Empty Folder Declaration
This commit is contained in:
@@ -39,6 +39,7 @@ Thank you to all the supporters!
|
||||
- Added Assets: Includes Fun SubGHz files: CVS/Walgreens CS Buttons & Honda Lock/Unlock.
|
||||
- AC Remote Update from OFW
|
||||
- Primary/Secondary App Settings Label Fix [From ClaraCrazy](https://github.com/ClaraCrazy/Flipper-Xtreme/pull/32/files)
|
||||
- Archive: Empty folder declaration [From ClaraCrazy](https://github.com/ClaraCrazy/Flipper-Xtreme/commit/dc8329704a72dc662586e70e196608fadbf26952)
|
||||
|
||||
## Install from Release
|
||||
FLASH STOCK FIRST BEFORE UPDATING TO CUSTOM FIRMWARE!
|
||||
|
||||
@@ -568,6 +568,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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user