mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 07:03: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
|
|
@ -56,7 +56,7 @@ Item {
|
||||||
homeScreenState: root.homeScreenState
|
homeScreenState: root.homeScreenState
|
||||||
|
|
||||||
// disable flick tracking when necessary
|
// 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
|
// item is effectively anchored to root, while allowing flickContainer
|
||||||
// to keep track of flicks
|
// to keep track of flicks
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,8 @@ DragDrop.DropArea {
|
||||||
favoriteStrip: dropArea.favoriteStrip
|
favoriteStrip: dropArea.favoriteStrip
|
||||||
}
|
}
|
||||||
|
|
||||||
|
property bool inAppletEditMode: false
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: plasmoid
|
target: plasmoid
|
||||||
function onEditModeChanged() {
|
function onEditModeChanged() {
|
||||||
|
|
@ -200,6 +202,10 @@ DragDrop.DropArea {
|
||||||
appletContainerComponent: MobileAppletContainer {
|
appletContainerComponent: MobileAppletContainer {
|
||||||
homeScreenState: dropArea.homeScreenState
|
homeScreenState: dropArea.homeScreenState
|
||||||
launcherDragManager: dropArea.launcherDragManager
|
launcherDragManager: dropArea.launcherDragManager
|
||||||
|
|
||||||
|
onEditModeChanged: {
|
||||||
|
inAppletEditMode = editMode;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
placeHolder: ContainmentLayoutManager.PlaceHolder {}
|
placeHolder: ContainmentLayoutManager.PlaceHolder {}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue