From 7a1d28d51ce8c337793dd16f8632d71cef6853f8 Mon Sep 17 00:00:00 2001 From: Mm2PL Date: Tue, 14 Feb 2023 11:57:52 +0100 Subject: [PATCH] Improve UI if homepage is missing --- src/widgets/settingspages/PluginsPage.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/widgets/settingspages/PluginsPage.cpp b/src/widgets/settingspages/PluginsPage.cpp index 591e67419..d73f800ce 100644 --- a/src/widgets/settingspages/PluginsPage.cpp +++ b/src/widgets/settingspages/PluginsPage.cpp @@ -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;