Merge PR #1043: Disable dashboard longpress editmode

pull/1045/head
jenkins 2023-06-06 21:17:44 +02:00
commit e7238e7e81
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()
}
}