1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 08:57:35 +00:00

Browser: Share one BookmarksBarWidget between all Tabs

This commit is contained in:
Andreas Kling 2020-04-25 17:20:23 +02:00
parent dc6b61dbcc
commit bd45b2b8d3
7 changed files with 93 additions and 50 deletions

View file

@ -43,6 +43,13 @@ WindowActions::WindowActions(GUI::Window& window)
on_about();
},
&window);
m_show_bookmarks_bar_action = GUI::Action::create_checkable(
"Show bookmarks bar",
[this](auto& action) {
if (on_show_bookmarks_bar)
on_show_bookmarks_bar(action);
},
&window);
}
}