Loading client/qml/PropertyPanel.qml +3 −9 Changes for client/qml/PropertyPanel.qml: 3 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -13,6 +13,8 @@ ColumnLayout { property string widgetName: "" property var _debounceTimer: null ListModel { id: surveyListModel } function loadProperties(uuid) { currentUuid = uuid var json = localApi.getElementProperties(uuid) Loading Loading @@ -536,7 +538,7 @@ ColumnLayout { palette.text: Theme.textPrimary palette.buttonText: Theme.textPrimary textRole: "text" model: ListModel { id: surveyListModel } model: surveyListModel background: Rectangle { color: Theme.bgTertiary; border.color: Theme.border; radius: Theme.radius } onActivated: { Loading Loading @@ -701,14 +703,6 @@ ColumnLayout { surveyListModel.clear() for (var i = 0; i < list.length; i++) surveyListModel.append({"text": list[i]}) // Re-select current value var curVal = propPanel.currentProps["survey_name"] || "" for (var j = 0; j < surveyListModel.count; j++) { if (surveyListModel.get(j).text === curVal) { surveyCombo.currentIndex = j break } } } } } Loading
client/qml/PropertyPanel.qml +3 −9 Changes for client/qml/PropertyPanel.qml: 3 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -13,6 +13,8 @@ ColumnLayout { property string widgetName: "" property var _debounceTimer: null ListModel { id: surveyListModel } function loadProperties(uuid) { currentUuid = uuid var json = localApi.getElementProperties(uuid) Loading Loading @@ -536,7 +538,7 @@ ColumnLayout { palette.text: Theme.textPrimary palette.buttonText: Theme.textPrimary textRole: "text" model: ListModel { id: surveyListModel } model: surveyListModel background: Rectangle { color: Theme.bgTertiary; border.color: Theme.border; radius: Theme.radius } onActivated: { Loading Loading @@ -701,14 +703,6 @@ ColumnLayout { surveyListModel.clear() for (var i = 0; i < list.length; i++) surveyListModel.append({"text": list[i]}) // Re-select current value var curVal = propPanel.currentProps["survey_name"] || "" for (var j = 0; j < surveyListModel.count; j++) { if (surveyListModel.get(j).text === curVal) { surveyCombo.currentIndex = j break } } } } }