Disable entering edit mode with longpress in the dashboard
Fixes: #1040
This commit is contained in:
parent
2cb2224e51
commit
aa82a3ce87
@ -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
|
||||
|
||||
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user