Commit 4859fb8f authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

applet: give a description to the connect/disconnect button

Connect/Disconnect doesn't say which connection the button refers to.
parent c72282f5
......@@ -44,9 +44,14 @@ PlasmaExtras.ExpandableListItem {
isDefault: ConnectionState == PlasmaNM.Enums.Activated
defaultActionButtonAction: Action {
id: stateChangeButton
icon.name: model.ConnectionState == PlasmaNM.Enums.Deactivated ? "network-connect" : "network-disconnect"
text: model.ConnectionState == PlasmaNM.Enums.Deactivated ? i18n("Connect") : i18n("Disconnect")
readonly property bool isDeactivated: model.ConnectionState === PlasmaNM.Enums.Deactivated
icon.name: isDeactivated ? "network-connect" : "network-disconnect"
text: isDeactivated ? i18n("Connect") : i18n("Disconnect")
onTriggered: changeState()
Accessible.description: isDeactivated ? i18nc("@info:tooltip %1 is the name of a network connection", "Connect to %1", connectionItem.title) : i18nc("@info:tooltip %1 is the name of a network connection", "Disconnect from %1", connectionItem.title)
}
showDefaultActionButtonWhenBusy: true
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment