mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
info kcm: make webpage optional
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 <sebas@kde.org>
This commit is contained in:
parent
9707f503a2
commit
8a70d7c50d
1 changed files with 5 additions and 1 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue