Commit bc0b2e4a authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

plasmoid: Make it possible to connect to a device using a touchscreen

Summary:
At the moment the button was only shown on hover. Now it will also be
shown when the details are expanded, which happens on tap.

Test Plan: Connected to my headphones.

Reviewers: #plasma, bshah, ngraham

Reviewed By: ngraham

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D19962
parent 050afd7e
......@@ -133,7 +133,7 @@ PlasmaComponents.ListItem {
}
text: Connected ? i18n("Disconnect") : i18n("Connect")
opacity: !connecting && deviceItem.containsMouse ? 1 : 0
opacity: !connecting && (deviceItem.containsMouse || deviceItem.visibleDetails) ? 1 : 0
visible: opacity != 0
Behavior on opacity {
......
Markdown is supported
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