Skip to content
GitLab
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
635acafa
Commit
635acafa
authored
May 25, 2022
by
Yari Polla
Committed by
Devin Lin
May 25, 2022
Browse files
appdrawer: avoid entering edit mode while in an half empty drawer
parent
b620fd7c
Pipeline
#180916
passed with stage
in 1 minute and 21 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
containments/homescreens/default/package/contents/ui/appdrawer/AppDrawerHeader.qml
View file @
635acafa
...
...
@@ -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
}
}
containments/homescreens/default/package/contents/ui/appdrawer/GridViewAppDrawer.qml
View file @
635acafa
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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