Disable entering edit mode with longpress in the dashboard

Fixes: #1040
pull/1043/head
Michael Zanetti 2023-06-06 14:52:13 +02:00
parent 2cb2224e51
commit aa82a3ce87
2 changed files with 6 additions and 6 deletions

View File

@ -80,11 +80,12 @@ MainViewBase {
contentWidth: width
bottomMargin: root.bottomMargin
MouseArea {
width: flickable.contentWidth
height: flickable.contentHeight
onPressAndHold: root.editMode = true
}
// Disabling this as it causes collisions when items in the dashboard use longpresses
// MouseArea {
// width: flickable.contentWidth
// height: flickable.contentHeight
// onPressAndHold: root.editMode = true
// }
GridLayout {
id: layout

View File

@ -49,6 +49,5 @@ DashboardDelegateBase {
thing: engine.thingManager.fetchingData ? null : engine.thingManager.things.getThing(root.item.thingId)
onClicked: pageStack.push(Qt.resolvedUrl("../../devicepages/" + NymeaUtils.interfaceListToDevicePage(thing.thingClass.interfaces)), {thing: thing})
onPressAndHold: root.longPressed()
}
}