Commit a0be58c5 authored by Marco Martin's avatar Marco Martin

close switcher when no windows are open

when the last window is closed, close the task switcher
parent 3290c398
......@@ -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)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment