From 1616db56b14869435bfff4cabe8c8a7e1a2c40e6 Mon Sep 17 00:00:00 2001 From: Mm2PL Date: Tue, 31 Jan 2023 17:22:00 +0100 Subject: [PATCH] Make plugins directory a link --- src/widgets/settingspages/PluginsPage.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/widgets/settingspages/PluginsPage.cpp b/src/widgets/settingspages/PluginsPage.cpp index a333e3c91..413bb2278 100644 --- a/src/widgets/settingspages/PluginsPage.cpp +++ b/src/widgets/settingspages/PluginsPage.cpp @@ -2,6 +2,7 @@ #include "Application.hpp" #include "controllers/plugins/PluginController.hpp" +#include "singletons/Paths.hpp" #include "singletons/Settings.hpp" #include "util/Helpers.hpp" #include "util/LayoutCreator.hpp" @@ -34,10 +35,13 @@ void PluginsPage::rebuildContent() auto group = layout.emplace("Plugins"); auto groupLayout = group.setLayoutType(); - auto *description = - new QLabel("You can load plugins by putting them into " - "/Plugins/. Each one is a " - "new directory."); + auto *description = new QLabel( + "You can load plugins by putting them into " + + formatRichNamedLink("file:///" + getPaths()->pluginsDirectory, + "the Plugins directory") + + ". Each one is a " + "new directory."); + description->setOpenExternalLinks(true); description->setWordWrap(true); description->setStyleSheet("color: #bbb"); groupLayout->addRow(description);