Add a button to open the settings
If you already have kdeconnect on your phone, the call to action to install it doesn't make sense. This doesn't add a string because it reuses one that was already in the plasmoid
This commit is contained in:
parent
9f8928513d
commit
7eeed141f0
1 changed files with 13 additions and 0 deletions
|
@ -24,6 +24,7 @@ import org.kde.plasma.components 2.0 as PlasmaComponents
|
||||||
import org.kde.plasma.extras 2.0 as PlasmaExtras
|
import org.kde.plasma.extras 2.0 as PlasmaExtras
|
||||||
import org.kde.kdeconnect 1.0 as KdeConnect
|
import org.kde.kdeconnect 1.0 as KdeConnect
|
||||||
import QtQuick.Layouts 1.9
|
import QtQuick.Layouts 1.9
|
||||||
|
import org.kde.kquickcontrolsaddons 2.0
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: kdeconnect
|
id: kdeconnect
|
||||||
|
@ -73,6 +74,18 @@ Item {
|
||||||
onClicked: Qt.openUrlExternally("https://f-droid.org/en/packages/org.kde.kdeconnect_tp/")
|
onClicked: Qt.openUrlExternally("https://f-droid.org/en/packages/org.kde.kdeconnect_tp/")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PlasmaComponents.Button {
|
||||||
|
Layout.leftMargin: units.largeSpacing
|
||||||
|
Layout.rightMargin: units.largeSpacing
|
||||||
|
Layout.topMargin: units.largeSpacing
|
||||||
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
Layout.fillWidth: true
|
||||||
|
text: i18n("KDE Connect Settings...")
|
||||||
|
onClicked: KCMShell.open("kcm_kdeconnect")
|
||||||
|
visible: KCMShell.authorize("kcm_kdeconnect.desktop").length > 0
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue