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

tooltip close button compatible with plasma 5.8

This commit is contained in:
audoban 2017-03-26 22:31:12 -05:00
parent 601b3933b5
commit f69d43a09c

View File

@ -144,8 +144,11 @@ Column {
acceptedButtons: Qt.LeftButton
hoverEnabled: true
onClicked: {
backend.cancelHighlightWindows();
tasksModel.requestClose(submodelIndex);
//NOTE: compatibility with plasma 5.8
if (backend.cancelHighlightWindows)
backend.cancelHighlightWindows()
tasksModel.requestClose(submodelIndex)
}
onContainsMouseChanged: contentItem.checkMouseInside();