From 9c303fee79c0e1a4f2e1752c48bc3bd90bb92529 Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Fri, 14 Jan 2022 16:08:39 -0700 Subject: [PATCH] plasmoid: Don't show redundant configure button in placeholder message It's not really needed. BUG: 448457 --- plasmoid/package/contents/ui/FullRepresentation.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plasmoid/package/contents/ui/FullRepresentation.qml b/plasmoid/package/contents/ui/FullRepresentation.qml index d68282e1f..ce0e1c95a 100644 --- a/plasmoid/package/contents/ui/FullRepresentation.qml +++ b/plasmoid/package/contents/ui/FullRepresentation.qml @@ -49,10 +49,10 @@ PlasmaExtras.Representation { } } helpfulAction: Action { - text: pairedDevicesModel.count == 0 ? i18n("Pair a Device...") : i18n("Configure...") - icon.name: pairedDevicesModel.count == 0 ? "list-add" : "configure" + text: i18n("Pair a Device...") + icon.name: "list-add" onTriggered: KdeConnect.DaemonDbusInterface.openConfiguration() - enabled: KCMShell.authorize("kcm_kdeconnect.desktop").length > 0 + enabled: pairedDevicesModel.count == 0 && KCMShell.authorize("kcm_kdeconnect.desktop").length > 0 } PlasmaComponents3.Button {