diff --git a/plasmoid/contents/ui/TaskDelegate.qml b/plasmoid/contents/ui/TaskDelegate.qml index e77c9d102..6b9bfc221 100644 --- a/plasmoid/contents/ui/TaskDelegate.qml +++ b/plasmoid/contents/ui/TaskDelegate.qml @@ -1036,8 +1036,8 @@ MouseArea{ repeat: false onTriggered: { - if(mainItemContainer.containsMouse){ - // console.log("Hovered Timer...."); + if(mainItemContainer.containsMouse && toolTipDelegate.parentTask !== mainItemContainer){ + //console.log("Hovered Timer...."); mainItemContainer.preparePreviewWindow(false); windowsPreviewDlg.show(); //windowsPreviewDlg.visible = true; diff --git a/plasmoid/contents/ui/main.qml b/plasmoid/contents/ui/main.qml index e8c8dc5d2..0f5300228 100644 --- a/plasmoid/contents/ui/main.qml +++ b/plasmoid/contents/ui/main.qml @@ -220,31 +220,38 @@ Item { //it is used to unblock dock hiding root.signalDraggingState(false); } + //console.log("on hide event called..."); visible = false; - //activeItem = null; + activeItem = null; + initializePreviewComponent.createObject(windowsPreviewDlg); } function show(){ - //used to initialize windows previews buffers - visible = false; - var tasks = icList.contentItem.children; + //console.log("preview show called..."); + if (activeItem !== toolTipDelegate.parentTask) { + //used to initialize windows previews buffers + visible = false; + + var tasks = icList.contentItem.children; + + for(var i=0; i