mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:27:35 +00:00
Taskbar: Display an icon for removing a widget
This commit is contained in:
parent
d72a3b5959
commit
0b72d237c1
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…
Add table
Add a link
Reference in a new issue