1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-13 13:09:49 +04:00

Fix file browser back history

This commit is contained in:
Willy-JL
2023-02-12 11:15:11 +00:00
parent 80b8a0dddb
commit 82f77edc70
4 changed files with 26 additions and 9 deletions

View File

@@ -247,13 +247,13 @@ static bool
furi_string_printf(name_str, "%s/%s", furi_string_get_cstr(path), name_temp);
if(browser->list_item_cb) {
browser->list_item_cb(
browser->cb_ctx, name_str, (file_info.flags & FSF_DIRECTORY), false);
browser->cb_ctx, name_str, items_cnt, (file_info.flags & FSF_DIRECTORY), false);
}
items_cnt++;
}
}
if(browser->list_item_cb) {
browser->list_item_cb(browser->cb_ctx, NULL, false, true);
browser->list_item_cb(browser->cb_ctx, NULL, 0, false, true);
}
ret = true;
} while(0);