make bookmark toggle operation async

This commit is contained in:
yggverse 2025-03-14 18:13:17 +02:00
parent d937d923c5
commit 1eaf3a607e
3 changed files with 56 additions and 43 deletions

View file

@ -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