From 4eebd8e34c44efad7df1af3344927515d36ddf5e Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Mon, 1 May 2017 20:09:02 +0300 Subject: [PATCH] disable audio streams for launchers --- plasmoid/contents/ui/TaskDelegate.qml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plasmoid/contents/ui/TaskDelegate.qml b/plasmoid/contents/ui/TaskDelegate.qml index 327e25e84..7e148ac3d 100644 --- a/plasmoid/contents/ui/TaskDelegate.qml +++ b/plasmoid/contents/ui/TaskDelegate.qml @@ -127,22 +127,18 @@ MouseArea{ } else { isSeparator = false; } - - updateAudioStreams(); } onModelLauncherUrlWithIconChanged: { if (modelLauncherUrlWithIcon !== ""){ launcherUrlWithIcon = modelLauncherUrlWithIcon; } - - updateAudioStreams(); } ////// Audio streams ////// property Item audioStreamOverlay property var audioStreams: [] - readonly property bool hasAudioStream: root.indicateAudioStreams && audioStreams.length > 0 + readonly property bool hasAudioStream: root.indicateAudioStreams && audioStreams.length > 0 && !isLauncher readonly property bool playingAudio: hasAudioStream && audioStreams.some(function (item) { return !item.corked }) @@ -649,6 +645,7 @@ MouseArea{ onAppNameChanged: updateAudioStreams() onPidChanged: updateAudioStreams() + onHasAudioStreamChanged: updateAudioStreams() onHoveredIndexChanged: { var distanceFromHovered = Math.abs(index - icList.hoveredIndex);