From 8a70d7c50dbfe28286bf8817c9674216f99e350f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Wed, 9 Apr 2025 20:26:12 +0200 Subject: [PATCH] info kcm: make webpage optional MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On some systems, the webpage info may be empty. In the UI, this would lead to a broken button (since the UI is not visible). So let's hide this button when the URL isn't set anyway. Signed-off-by: Sebastian Kügler --- kcms/info/ui/main.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kcms/info/ui/main.qml b/kcms/info/ui/main.qml index 30b46382..15dab334 100644 --- a/kcms/info/ui/main.qml +++ b/kcms/info/ui/main.qml @@ -48,9 +48,13 @@ KCM.SimpleKCM { description: kcm.distroInfo.name } - FormCard.FormDelegateSeparator {} + FormCard.FormDelegateSeparator { + visible: webpageDelegate.visible + } FormCard.FormButtonDelegate { + id: webpageDelegate + visible: kcm.distroInfo.homeUrl text: i18n("Webpage") description: kcm.distroInfo.homeUrl onClicked: {