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:
parent
07cf2218cb
commit
0252c1f8fa
3 changed files with 46 additions and 7 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue