mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 07:03:08 +00:00
close switcher when no windows are open
when the last window is closed, close the task switcher
This commit is contained in:
parent
3290c398f4
commit
a0be58c595
1 changed files with 5 additions and 0 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue