Make plugins directory a link

This commit is contained in:
Mm2PL 2023-01-31 17:22:00 +01:00
parent 50e71195b2
commit 1616db56b1
No known key found for this signature in database
GPG key ID: 94AC9B80EFA15ED9

View file

@ -2,6 +2,7 @@
#include "Application.hpp" #include "Application.hpp"
#include "controllers/plugins/PluginController.hpp" #include "controllers/plugins/PluginController.hpp"
#include "singletons/Paths.hpp"
#include "singletons/Settings.hpp" #include "singletons/Settings.hpp"
#include "util/Helpers.hpp" #include "util/Helpers.hpp"
#include "util/LayoutCreator.hpp" #include "util/LayoutCreator.hpp"
@ -34,10 +35,13 @@ void PluginsPage::rebuildContent()
auto group = layout.emplace<QGroupBox>("Plugins"); auto group = layout.emplace<QGroupBox>("Plugins");
auto groupLayout = group.setLayoutType<QFormLayout>(); auto groupLayout = group.setLayoutType<QFormLayout>();
auto *description = auto *description = new QLabel(
new QLabel("You can load plugins by putting them into " "You can load plugins by putting them into " +
"<chatterino-app-data-folder>/Plugins/. Each one is a " formatRichNamedLink("file:///" + getPaths()->pluginsDirectory,
"the Plugins directory") +
". Each one is a "
"new directory."); "new directory.");
description->setOpenExternalLinks(true);
description->setWordWrap(true); description->setWordWrap(true);
description->setStyleSheet("color: #bbb"); description->setStyleSheet("color: #bbb");
groupLayout->addRow(description); groupLayout->addRow(description);