Improve UI if homepage is missing

This commit is contained in:
Mm2PL 2023-02-14 11:57:52 +01:00
parent 94ceee3c7e
commit 7a1d28d51c

View file

@ -123,10 +123,12 @@ void PluginsPage::rebuildContent()
}
pl->addRow("Authors", new QLabel(authorsTxt));
auto *homepage = new QLabel(formatRichLink(plugin->meta.homepage));
homepage->setOpenExternalLinks(true);
pl->addRow("Homepage", homepage);
if (!plugin->meta.homepage.isEmpty())
{
auto *homepage = new QLabel(formatRichLink(plugin->meta.homepage));
homepage->setOpenExternalLinks(true);
pl->addRow("Homepage", homepage);
}
pl->addRow("License", new QLabel(plugin->meta.license));
QString cmds;