use visible = true

This commit is contained in:
Marco Martin 2015-10-01 17:40:26 +02:00
parent 8aac7a2b9c
commit 813bd8fa0c

View file

@ -55,8 +55,8 @@ PlasmaCore.ColorScope {
onPositionChanged: {
taskSwitcher.offset = taskSwitcher.offset - (mouse.y - oldMouseY);
oldMouseY = mouse.y;
if (taskSwitcher.visibility == Window.Hidden && taskSwitcher.offset > -taskSwitcher.height + units.gridUnit) {
taskSwitcher.visibility = Window.FullScreen;
if (taskSwitcher.visibility == Window.Hidden && taskSwitcher.offset > -taskSwitcher.height + units.gridUnit && taskSwitcher.tasksCount) {
taskSwitcher.visible = true;
}
}
onReleased: {