Remove useless timer from systray, which only closes the popup in 10ms

If it has any actual purpose, there should be a comment.

REVIEW: 118049
wilder-5.14
Martin Klapetek 12 years ago
parent 7b69bdc753
commit 602e7f2030
  1. 17
      applets/systemtray/package/contents/ui/CompactRepresentation.qml

@ -49,19 +49,6 @@ Item {
}
}
Timer {
id: hidePopupTimer
interval: 10
running: false
repeat: false
onTriggered: {
//print("hidetimer triggered, collapsing " + (root.expandedTask == null) )
if (root.expandedTask == null) {
plasmoid.expanded = false
}
}
}
function computeDimension() {
var dim = root.vertical ? compactRepresentation.width : compactRepresentation.height
var rows = Math.floor(dim / root.itemSize);
@ -82,7 +69,9 @@ Item {
if (!plasmoid.expanded) {
plasmoid.expanded = true
} else {
hidePopupTimer.start();
if (root.expandedTask == null) {
plasmoid.expanded = false
}
}
}

Loading…
Cancel
Save