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

Taskbar: Support arbitrary executables as QuickLaunch entries

This commit is contained in:
Maciej 2021-12-29 17:06:14 +01:00 committed by Andreas Kling
parent 2e8e959896
commit 3022baddc2
2 changed files with 51 additions and 4 deletions

View file

@ -39,6 +39,21 @@ private:
NonnullRefPtr<Desktop::AppFile> m_app_file;
};
class QuickLaunchEntryExecutable : public QuickLaunchEntry {
public:
explicit QuickLaunchEntryExecutable(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;
};
class QuickLaunchWidget : public GUI::Frame
, public Config::Listener {
C_OBJECT(QuickLaunchWidget);