mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
add bookmarks limit option
This commit is contained in:
parent
ce14920d23
commit
1c4bde4004
3 changed files with 9 additions and 5 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue