From 602e7f20305aef7d9e255b0dfd14034dcdc0d783 Mon Sep 17 00:00:00 2001 From: Martin Klapetek Date: Thu, 8 May 2014 13:16:29 +0200 Subject: [PATCH] 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 --- .../contents/ui/CompactRepresentation.qml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/applets/systemtray/package/contents/ui/CompactRepresentation.qml b/applets/systemtray/package/contents/ui/CompactRepresentation.qml index c5c043c9a..5f93dd2d1 100644 --- a/applets/systemtray/package/contents/ui/CompactRepresentation.qml +++ b/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 + } } }