mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Make plugins directory a link
This commit is contained in:
parent
50e71195b2
commit
1616db56b1
1 changed files with 8 additions and 4 deletions
|
@ -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<QGroupBox>("Plugins");
|
||||
auto groupLayout = group.setLayoutType<QFormLayout>();
|
||||
|
||||
auto *description =
|
||||
new QLabel("You can load plugins by putting them into "
|
||||
"<chatterino-app-data-folder>/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);
|
||||
|
|
Loading…
Reference in a new issue