mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
Taskbar: Display an icon for removing a widget
This commit is contained in:
parent
d72a3b5959
commit
0b72d237c1
Notes:
sideshowbarker
2024-07-17 06:35:23 +09:00
Author: https://github.com/implicitfield Commit: https://github.com/SerenityOS/serenity/commit/0b72d237c1 Pull-request: https://github.com/SerenityOS/serenity/pull/15518
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ QuickLaunchWidget::QuickLaunchWidget()
|
|||
set_fixed_height(24);
|
||||
|
||||
m_context_menu = GUI::Menu::construct();
|
||||
m_context_menu_default_action = GUI::Action::create("&Remove", [this](auto&) {
|
||||
m_context_menu_default_action = GUI::Action::create("&Remove", Gfx::Bitmap::try_load_from_file("/res/icons/16x16/delete.png"sv).release_value_but_fixme_should_propagate_errors(), [this](auto&) {
|
||||
Config::remove_key("Taskbar"sv, quick_launch, m_context_menu_app_name);
|
||||
auto button = find_child_of_type_named<GUI::Button>(m_context_menu_app_name);
|
||||
if (button) {
|
||||
|
|
Loading…
Reference in a new issue