Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Mobile
Commits
8aac7a2b
Commit
8aac7a2b
authored
Oct 01, 2015
by
Marco Martin
Browse files
don't show the task manager if there are no tasks
parent
6e03fc1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
containments/taskpanel/package/contents/ui/TaskSwitcher.qml
View file @
8aac7a2b
...
...
@@ -32,12 +32,16 @@ FullScreenPanel {
height
:
Screen
.
height
property
int
offset
:
0
property
int
overShoot
:
units
.
gridUnit
*
2
property
int
tasksCount
:
filteredWindowModel
.
count
color
:
Qt
.
rgba
(
0
,
0
,
0
,
0.6
*
Math
.
min
(
(
Math
.
min
(
tasksView
.
contentY
+
tasksView
.
height
,
tasksView
.
height
)
/
tasksView
.
height
),
((
tasksView
.
contentHeight
-
tasksView
.
contentY
-
tasksView
.
headerItem
.
height
-
tasksView
.
footerItem
.
height
)
/
tasksView
.
height
)))
function
show
()
{
if
(
filteredWindowModel
.
count
==
0
)
{
return
;
}
if
(
!
visible
)
{
tasksView
.
contentY
=
-
tasksView
.
headerItem
.
height
;
}
...
...
containments/taskpanel/package/contents/ui/main.qml
View file @
8aac7a2b
...
...
@@ -83,6 +83,7 @@ PlasmaCore.ColorScope {
anchors.left
:
parent
.
left
height
:
parent
.
height
width
:
parent
.
width
/
3
enabled
:
taskSwitcher
.
tasksCount
>
0
iconSource
:
"
applications-other
"
onClicked
:
taskSwitcher
.
visible
?
taskSwitcher
.
hide
()
:
taskSwitcher
.
show
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment