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

Taskbar: Support arbitrary *files* as QuickLaunch entries

This commit is contained in:
Maciej 2021-12-29 17:25:44 +01:00 committed by Andreas Kling
parent 07cf2218cb
commit 0252c1f8fa
3 changed files with 46 additions and 7 deletions

View file

@ -50,6 +50,20 @@ public:
virtual GUI::Icon icon() const override;
virtual String name() const override;
private:
String m_path;
};
class QuickLaunchEntryFile : public QuickLaunchEntry {
public:
explicit QuickLaunchEntryFile(String path)
: m_path(move(path))
{
}
virtual ErrorOr<void> launch() const override;
virtual GUI::Icon icon() const override;
virtual String name() const override;
private:
String m_path;
};