From 4908efcf89764630c51378b2ab1342eee3dfbdd9 Mon Sep 17 00:00:00 2001 From: Mm2PL Date: Tue, 31 Jan 2023 00:21:31 +0100 Subject: [PATCH] Try this way --- src/widgets/settingspages/PluginsPage.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/widgets/settingspages/PluginsPage.cpp b/src/widgets/settingspages/PluginsPage.cpp index 4b69f8407..5097203c6 100644 --- a/src/widgets/settingspages/PluginsPage.cpp +++ b/src/widgets/settingspages/PluginsPage.cpp @@ -39,7 +39,7 @@ PluginsPage::PluginsPage() auto plgroup = groupLayout.emplace(plugin->meta.name); auto pl = plgroup.setLayoutType(); auto *descrText = new QLabel(plugin->meta.description); - descrText->setTextFormat(Qt::TextFormat::MarkdownText); + //descrText->setTextFormat(Qt::TextFormat::MarkdownText); descrText->setWordWrap(true); descrText->setStyleSheet("color: #bbb"); pl->addRow(descrText); @@ -50,8 +50,8 @@ PluginsPage::PluginsPage() pl->addRow("Homepage", homepage); auto *reload = new QPushButton("Reload"); - QObject::connect(reload, &QPushButton::pressed, [=]() { - getApp()->plugins->reload(codename); + QObject::connect(reload, &QPushButton::pressed, [name = codename]() { + getApp()->plugins->reload(name); }); pl->addRow(reload); }