1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:07:45 +00:00

Taskbar: Handle errors when adding/changing quick launch entries

This patch removes 2 FIXMEs :^)
This commit is contained in:
Arda Cinar 2022-12-23 22:38:02 +03:00 committed by Andreas Kling
parent 1acc788500
commit 4fec9540ec
2 changed files with 27 additions and 16 deletions

View file

@ -90,9 +90,10 @@ public:
virtual void drop_event(GUI::DropEvent&) override;
private:
explicit QuickLaunchWidget(Vector<NonnullOwnPtr<QuickLaunchEntry>> entries);
void add_or_adjust_button(DeprecatedString const&, NonnullOwnPtr<QuickLaunchEntry>&&);
explicit QuickLaunchWidget();
ErrorOr<void> add_or_adjust_button(DeprecatedString const&, NonnullOwnPtr<QuickLaunchEntry>&&);
ErrorOr<void> create_context_menu();
ErrorOr<void> add_quick_launch_buttons(Vector<NonnullOwnPtr<QuickLaunchEntry>> entries);
RefPtr<GUI::Menu> m_context_menu;
RefPtr<GUI::Action> m_context_menu_default_action;