mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-03 18:24:46 +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;
|
Component.onCompleted: plasmoid.nativeInterface.panel = window;
|
||||||
|
|
||||||
|
onTasksCountChanged: {
|
||||||
|
if (tasksCount == 0) {
|
||||||
|
hide();
|
||||||
|
}
|
||||||
|
}
|
||||||
color: Qt.rgba(0, 0, 0, 0.8 * Math.min(
|
color: Qt.rgba(0, 0, 0, 0.8 * Math.min(
|
||||||
(Math.min(tasksView.contentY + tasksView.height, tasksView.height) / tasksView.height),
|
(Math.min(tasksView.contentY + tasksView.height, tasksView.height) / tasksView.height),
|
||||||
((tasksView.contentHeight - tasksView.contentY - tasksView.headerItem.height - tasksView.footerItem.height)/tasksView.height)))
|
((tasksView.contentHeight - tasksView.contentY - tasksView.headerItem.height - tasksView.footerItem.height)/tasksView.height)))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue