From 7b7cade11fefa0563e0f6ddfb29a5858c1c896ff Mon Sep 17 00:00:00 2001 From: Jannis Voelker Date: Fri, 22 Mar 2024 16:03:52 +0100 Subject: [PATCH] Persist Drag & Drop reordering of variable dashboard tiles The move is now done in the MonitoredItemModel, so it will be persisted in the last session data and on saving the dashboard. --- src/qml/DashboardView.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/qml/DashboardView.qml b/src/qml/DashboardView.qml index d1364ee..e8cf685 100644 --- a/src/qml/DashboardView.qml +++ b/src/qml/DashboardView.qml @@ -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) } } }