Commit 8dd61335 authored by Yari Polla's avatar Yari Polla
Browse files

appdrawer: avoid entering edit mode while in an half empty drawer

parent be159dad
Pipeline #180907 passed with stage
in 58 seconds
......@@ -46,4 +46,9 @@ PlasmaCore.ColorScope {
onClicked: root.switchToGridRequested()
//HACK: Here only to steal inputs the would normally be delivered to home
MouseArea {
anchors.fill: parent
......@@ -26,7 +26,12 @@ AbstractAppDrawer {
contentItem: GridView {
id: gridView
clip: true
interactive: root.homeScreenState.appDrawerInteractive
* HACK: When the number of apps is less than the one that would fit in the first shown part of the drawer, make
* this flickable interactive, in order to steal inputs that would normally be delivered to home.
interactive: contentHeight <= height ? true : root.homeScreenState.appDrawerInteractive
cellWidth: root.contentWidth / Math.floor(root.contentWidth / ((root.availableCellHeight - root.reservedSpaceForLabel) + PlasmaCore.Units.smallSpacing*4))
cellHeight: root.availableCellHeight
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment