disable audio streams for launchers

pull/1/head
Michail Vourlakos 8 years ago
parent 7375757883
commit 4eebd8e34c

@ -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);

Loading…
Cancel
Save