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