mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-27 22:33:08 +00:00
homescreen: deactivate home screen flick container when an applet is in edit mode
This commit is contained in:
parent
f0e1d4e46e
commit
ba2d6bf64d
2 changed files with 10 additions and 4 deletions
|
|
@ -25,10 +25,10 @@ Item {
|
|||
id: root
|
||||
|
||||
property bool interactive: true
|
||||
|
||||
|
||||
property var homeScreenState: HomeScreenState {
|
||||
interactive: root.interactive
|
||||
|
||||
|
||||
totalPagesWidth: pages.contentWidth
|
||||
|
||||
appDrawerFlickable: appDrawer.flickable
|
||||
|
|
@ -56,8 +56,8 @@ Item {
|
|||
homeScreenState: root.homeScreenState
|
||||
|
||||
// disable flick tracking when necessary
|
||||
interactive: root.interactive && homeScreenState.currentView !== HomeScreenState.AppDrawerView
|
||||
|
||||
interactive: root.interactive && homeScreenState.currentView !== HomeScreenState.AppDrawerView && !contents.inAppletEditMode
|
||||
|
||||
// item is effectively anchored to root, while allowing flickContainer
|
||||
// to keep track of flicks
|
||||
Item {
|
||||
|
|
|
|||
|
|
@ -50,6 +50,8 @@ DragDrop.DropArea {
|
|||
favoriteStrip: dropArea.favoriteStrip
|
||||
}
|
||||
|
||||
property bool inAppletEditMode: false
|
||||
|
||||
Connections {
|
||||
target: plasmoid
|
||||
function onEditModeChanged() {
|
||||
|
|
@ -200,6 +202,10 @@ DragDrop.DropArea {
|
|||
appletContainerComponent: MobileAppletContainer {
|
||||
homeScreenState: dropArea.homeScreenState
|
||||
launcherDragManager: dropArea.launcherDragManager
|
||||
|
||||
onEditModeChanged: {
|
||||
inAppletEditMode = editMode;
|
||||
}
|
||||
}
|
||||
|
||||
placeHolder: ContainmentLayoutManager.PlaceHolder {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue