mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 19:46:03 +00:00
Taskbar: Support arbitrary executables as QuickLaunch entries
This commit is contained in:
parent
2e8e959896
commit
3022baddc2
Notes:
sideshowbarker
2024-07-17 20:32:47 +09:00
Author: https://github.com/sppmacd
Commit: 3022baddc2
Pull-request: https://github.com/SerenityOS/serenity/pull/11488
Reviewed-by: https://github.com/awesomekling
2 changed files with 51 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue