mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
update comment
This commit is contained in:
parent
0b44303023
commit
9d40e7f01c
1 changed files with 2 additions and 2 deletions
|
|
@ -159,8 +159,8 @@ impl Tab {
|
||||||
self.widget.close_all();
|
self.widget.close_all();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Toggle bookmark for page at position or current page on `None`
|
/// Toggle `Bookmark` in current `Profile` for `Page` at given `position` (current page on `None`)
|
||||||
/// * return `true` on bookmark created, `false` on deleted
|
/// * return `true` on bookmark created, `false` on deleted; `Error` otherwise.
|
||||||
pub fn bookmark(&self, page_position: Option<i32>) -> Result<bool, Error> {
|
pub fn bookmark(&self, page_position: Option<i32>) -> Result<bool, Error> {
|
||||||
if let Some(page) = self.widget.page(page_position) {
|
if let Some(page) = self.widget.page(page_position) {
|
||||||
if let Some(id) = page.keyword() {
|
if let Some(id) = page.keyword() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue