close task list when there are no windows left

This commit is contained in:
Marco Martin 2015-10-15 15:04:43 +02:00
parent 0a5fd82410
commit 6b3f32ed3c

View file

@ -138,6 +138,11 @@ FullScreenPanel {
filterRole: "SkipTaskbar"
filterRegExp: "false"
sourceModel: plasmoid.nativeInterface.windowModel
onCountChanged: {
if (count == 0) {
window.hide();
}
}
}
model: filteredWindowModel