reorganize bookmarks memory model

This commit is contained in:
yggverse 2025-03-08 18:48:21 +02:00
parent 6f91efbc9c
commit 6526ca85d8
6 changed files with 93 additions and 99 deletions

View file

@ -48,7 +48,7 @@ impl Bookmark for Button {
}
fn update(&self, profile: &Profile, request: &Entry) {
let has_bookmark = profile.bookmark.get(&request.text()).is_some();
let has_bookmark = profile.bookmark.contains_request(&request.text());
self.set_icon_name(icon_name(has_bookmark));
self.set_tooltip_text(Some(tooltip_text(has_bookmark)));
}