mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:27:35 +00:00
Browser: Have BookmarksBarWidget
signal bookmark changes for Tab
This fixes an issue with a tab not updating its bookmark button when we either edit or delete a bookmark and the tab happens to be on the same page associated with the bookmark URL. `BookmarksBarWidget` "signals" a `Tab` object of any bookmark changes, where it will update the bookmark button depending on if the current URL is an existing bookmark or not.
This commit is contained in:
parent
86781f0c08
commit
0060b8c4e5
3 changed files with 19 additions and 12 deletions
|
@ -34,7 +34,7 @@ public:
|
|||
|
||||
Function<void(DeprecatedString const& url, Open)> on_bookmark_click;
|
||||
Function<void(DeprecatedString const&, DeprecatedString const&)> on_bookmark_hover;
|
||||
Function<void(DeprecatedString const& url)> on_bookmark_add;
|
||||
Function<void()> on_bookmark_change;
|
||||
|
||||
bool contains_bookmark(DeprecatedString const& url);
|
||||
bool remove_bookmark(DeprecatedString const& url);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue