Verified Commit cadb5eba authored by ivan tkachenko's avatar ivan tkachenko
Browse files

[applets/userswitcher] Use onPressed: wasExpanded... idiom

Many other applets do this as well.
parent b73553ab
......@@ -65,7 +65,9 @@ Item {
Layout.maximumHeight: isVertical ? Layout.minimumHeight : Infinity
Layout.preferredHeight: isVertical ? Layout.minimumHeight : PlasmaCore.Theme.mSize(PlasmaCore.Theme.defaultFont).height * 2
onClicked: Plasmoid.expanded = !Plasmoid.expanded
property bool wasExpanded
onPressed: wasExpanded = Plasmoid.expanded
onClicked: Plasmoid.expanded = !wasExpanded
Row {
id: compactRow
......
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