mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:57:44 +00:00
Taskbar: Add context menu to remove quicklaunch items
This change adds a context menu for each app button to remove items from the quicklaunch section of the Taskbar.
This commit is contained in:
parent
c74afdde26
commit
7d6058415e
2 changed files with 19 additions and 1 deletions
|
@ -23,11 +23,14 @@ public:
|
|||
virtual void config_key_was_removed(String const&, String const&, String const&) override;
|
||||
virtual void config_string_did_change(String const&, String const&, String const&, String const&) override;
|
||||
|
||||
virtual void drop_event(GUI::DropEvent&);
|
||||
virtual void drop_event(GUI::DropEvent&) override;
|
||||
|
||||
private:
|
||||
QuickLaunchWidget();
|
||||
void add_or_adjust_button(String const&, NonnullRefPtr<Desktop::AppFile>);
|
||||
RefPtr<GUI::Menu> m_context_menu;
|
||||
RefPtr<GUI::Action> m_context_menu_default_action;
|
||||
String m_context_menu_app_name;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue