close switcher when no windows are open

when the last window is closed, close the task switcher
This commit is contained in:
Marco Martin 2016-09-02 17:38:24 +02:00
parent 3290c398f4
commit a0be58c595

View file

@ -40,6 +40,11 @@ FullScreenPanel {
Component.onCompleted: plasmoid.nativeInterface.panel = window;
onTasksCountChanged: {
if (tasksCount == 0) {
hide();
}
}
color: Qt.rgba(0, 0, 0, 0.8 * Math.min(
(Math.min(tasksView.contentY + tasksView.height, tasksView.height) / tasksView.height),
((tasksView.contentHeight - tasksView.contentY - tasksView.headerItem.height - tasksView.footerItem.height)/tasksView.height)))