mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Try this way
This commit is contained in:
parent
56c7e78f48
commit
4908efcf89
1 changed files with 3 additions and 3 deletions
|
@ -39,7 +39,7 @@ PluginsPage::PluginsPage()
|
|||
auto plgroup = groupLayout.emplace<QGroupBox>(plugin->meta.name);
|
||||
auto pl = plgroup.setLayoutType<QFormLayout>();
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue