Fix "Pair a Device..." button in plasmoid

(cherry picked from commit abbaa1575b)
This commit is contained in:
Joshua Goins 2023-01-18 10:29:25 -05:00 committed by Aleix Pol Gonzalez
parent a905d57883
commit 23098c8544

View file

@ -58,7 +58,7 @@ PlasmaExtras.Representation {
helpfulAction: Action { helpfulAction: Action {
text: i18n("Pair a Device...") text: i18n("Pair a Device...")
icon.name: "list-add" icon.name: "list-add"
onTriggered: KdeConnect.DaemonDbusInterface.openConfiguration() onTriggered: KdeConnect.OpenConfig.openConfiguration()
enabled: pairedDevicesModel.count == 0 && KCMShell.authorize("kcm_kdeconnect.desktop").length > 0 enabled: pairedDevicesModel.count == 0 && KCMShell.authorize("kcm_kdeconnect.desktop").length > 0
} }