1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-22 14:50:31 +03:00

fix #440,disable audio streams during dragging

--re-initialize also audio streams after dragging
has finished
This commit is contained in:
Michail Vourlakos 2017-05-02 22:33:36 +03:00
parent e891f0bf05
commit a78b90fb9e

View File

@ -127,20 +127,12 @@ MouseArea{
} else {
isSeparator = false;
}
//trying to fix #440, showing the audio icon indicator to irrelevant tasks
//after dragging an existent task with audio
updateAudioStreams();
}
onModelLauncherUrlWithIconChanged: {
if (modelLauncherUrlWithIcon !== ""){
launcherUrlWithIcon = modelLauncherUrlWithIcon;
}
//trying to fix #440, showing the audio icon indicator to irrelevant tasks
//after dragging an existent task with audio
updateAudioStreams();
}
////// Audio streams //////
@ -1175,6 +1167,11 @@ MouseArea{
function updateAudioStreams() {
if (root.dragSource !== null) {
audioStreams = [];
return;
}
var pa = pulseAudio.item;
if (!pa) {
task.audioStreams = [];
@ -1219,6 +1216,13 @@ MouseArea{
onStreamsChanged: mainItemContainer.updateAudioStreams()
}
Connections {
target: root
//trying to fix #440, showing the audio icon indicator to irrelevant tasks
//after dragging an existent task with audio
onDragSourceChanged: mainItemContainer.updateAudioStreams()
}
///REMOVE
//fix wrong positioning of launchers....