From 47f413c47f54ce8b20b604796e01253448139c1a Mon Sep 17 00:00:00 2001 From: Dylan Katz Date: Wed, 29 Apr 2020 20:41:48 -0700 Subject: [PATCH] Browser: Add missing tooltip to bookmark button The tip will say "Add Bookmark" if not a bookmark and "Remove Bookmark" if it is. --- Applications/Browser/Tab.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Applications/Browser/Tab.cpp b/Applications/Browser/Tab.cpp index cbf79395af..963839b666 100644 --- a/Applications/Browser/Tab.cpp +++ b/Applications/Browser/Tab.cpp @@ -271,8 +271,10 @@ void Tab::update_bookmark_button(const String& url) { if (BookmarksBarWidget::the().contains_bookmark(url)) { m_bookmark_button->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/star-yellow.png")); + m_bookmark_button->set_tooltip("Remove Bookmark"); } else { m_bookmark_button->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/star-contour.png")); + m_bookmark_button->set_tooltip("Add Bookmark"); } }