add bookmarks limit option

This commit is contained in:
yggverse 2025-03-08 21:19:58 +02:00
parent ce14920d23
commit 1c4bde4004
3 changed files with 9 additions and 5 deletions

View file

@ -68,8 +68,8 @@ impl Bookmark {
}
/// Get recent Items vector from `memory`, sorted by `ID` DESC
pub fn recent(&self) -> Vec<Item> {
self.memory.borrow().recent()
pub fn recent(&self, limit: Option<usize>) -> Vec<Item> {
self.memory.borrow().recent(limit)
}
}