From 042152b3463a4f2869998ebf8ff31d2ad644e36c Mon Sep 17 00:00:00 2001 From: thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> Date: Fri, 26 Feb 2021 07:21:32 -0500 Subject: [PATCH] LibGUI: Set correct open action for LinkLabel context menu Replaces the Open... common action for files with more appropriate Show in File Manager, as the desktop context menu uses --- Userland/Libraries/LibGUI/LinkLabel.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Userland/Libraries/LibGUI/LinkLabel.cpp b/Userland/Libraries/LibGUI/LinkLabel.cpp index 7ec2838c77..eb1f359306 100644 --- a/Userland/Libraries/LibGUI/LinkLabel.cpp +++ b/Userland/Libraries/LibGUI/LinkLabel.cpp @@ -49,11 +49,10 @@ LinkLabel::LinkLabel(String text) void LinkLabel::setup_actions() { - m_open_action = CommonActions::make_open_action([this](auto&) { + m_open_action = GUI::Action::create("Show in File Manager", {}, Gfx::Bitmap::load_from_file("/res/icons/16x16/app-file-manager.png"), [&](const GUI::Action&) { if (on_click) on_click(); - }, - this); + }); m_copy_action = CommonActions::make_copy_action([this](auto&) { Clipboard::the().set_plain_text(text()); }, this); }