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 plgroup = groupLayout.emplace<QGroupBox>(plugin->meta.name);
|
||||||
auto pl = plgroup.setLayoutType<QFormLayout>();
|
auto pl = plgroup.setLayoutType<QFormLayout>();
|
||||||
auto *descrText = new QLabel(plugin->meta.description);
|
auto *descrText = new QLabel(plugin->meta.description);
|
||||||
descrText->setTextFormat(Qt::TextFormat::MarkdownText);
|
//descrText->setTextFormat(Qt::TextFormat::MarkdownText);
|
||||||
descrText->setWordWrap(true);
|
descrText->setWordWrap(true);
|
||||||
descrText->setStyleSheet("color: #bbb");
|
descrText->setStyleSheet("color: #bbb");
|
||||||
pl->addRow(descrText);
|
pl->addRow(descrText);
|
||||||
|
@ -50,8 +50,8 @@ PluginsPage::PluginsPage()
|
||||||
pl->addRow("Homepage", homepage);
|
pl->addRow("Homepage", homepage);
|
||||||
|
|
||||||
auto *reload = new QPushButton("Reload");
|
auto *reload = new QPushButton("Reload");
|
||||||
QObject::connect(reload, &QPushButton::pressed, [=]() {
|
QObject::connect(reload, &QPushButton::pressed, [name = codename]() {
|
||||||
getApp()->plugins->reload(codename);
|
getApp()->plugins->reload(name);
|
||||||
});
|
});
|
||||||
pl->addRow(reload);
|
pl->addRow(reload);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue