mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
make bookmark toggle operation async
This commit is contained in:
parent
d937d923c5
commit
1eaf3a607e
3 changed files with 56 additions and 43 deletions
|
|
@ -76,10 +76,7 @@ impl Page {
|
|||
|
||||
/// Toggle bookmark for current navigation request
|
||||
pub fn bookmark(&self) {
|
||||
self.profile
|
||||
.bookmark
|
||||
.toggle(&self.navigation.request(), Some(&self.title()))
|
||||
.unwrap(); // @TODO
|
||||
self.navigation.bookmark(Some(&self.title()))
|
||||
}
|
||||
|
||||
/// Request `Escape` action for all page components
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue