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)); pl->addRow("Authors", new QLabel(authorsTxt));
if (!plugin->meta.homepage.isEmpty())
{
auto *homepage = new QLabel(formatRichLink(plugin->meta.homepage)); auto *homepage = new QLabel(formatRichLink(plugin->meta.homepage));
homepage->setOpenExternalLinks(true); homepage->setOpenExternalLinks(true);
pl->addRow("Homepage", homepage); pl->addRow("Homepage", homepage);
}
pl->addRow("License", new QLabel(plugin->meta.license)); pl->addRow("License", new QLabel(plugin->meta.license));
QString cmds; QString cmds;