mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibVT: Pass the handler name to Launcher::open_url to control what gets launched
Now we can pick which application gets opened in the context menu for URLs in the Terminal \o/
This commit is contained in:
parent
02cc3ac21f
commit
181eacd3ba
Notes:
sideshowbarker
2024-07-19 06:31:54 +09:00
Author: https://github.com/niax
Commit: 181eacd3ba
Pull-request: https://github.com/SerenityOS/serenity/pull/2247
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/bugaevc
1 changed files with 2 additions and 2 deletions
|
@ -850,8 +850,8 @@ void TerminalWidget::context_menu_event(GUI::ContextMenuEvent& event)
|
|||
|
||||
auto icon = Gfx::Bitmap::load_from_file(handler_icon);
|
||||
|
||||
m_context_menu_for_hyperlink->add_action(GUI::Action::create(String::format("Open in %s", handler_name.characters()), move(icon), [this](auto&) {
|
||||
Desktop::Launcher::open(m_context_menu_href);
|
||||
m_context_menu_for_hyperlink->add_action(GUI::Action::create(String::format("Open in %s", handler_name.characters()), move(icon), [this, handler](auto&) {
|
||||
Desktop::Launcher::open(m_context_menu_href, handler);
|
||||
}));
|
||||
}
|
||||
m_context_menu_for_hyperlink->add_action(GUI::Action::create("Copy URL", [this](auto&) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue