Skip to content

Commit

Permalink
Persist Drag & Drop reordering of variable dashboard tiles
Browse files Browse the repository at this point in the history
The move is now done in the MonitoredItemModel, so it will be
persisted in the last session data and on saving the dashboard.
  • Loading branch information
basyskom-jvoe authored and khaexy committed Mar 26, 2024
1 parent 0ed7d47 commit debf047
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/qml/DashboardView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ Rectangle {

onEntered: drag => {
if (!dragArea.isAddItem) {
visualModel.items.move(
drag.source.DelegateModel.itemsIndex,
dragArea.DelegateModel.itemsIndex)
visualModel.model.moveItem(
drag.source.index,
dragArea.index)
}
}
}
Expand Down

0 comments on commit debf047

Please sign in to comment.