Skip to content

Commit 92f63db

Browse files
author
livecodeali
committed
[[ Tree View ]] Fix loading of tree view properties
1 parent bca1278 commit 92f63db

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

extensions/widgets/treeview/treeview.lcb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,21 +316,22 @@ public handler OnSave(out rProperties as Array)
316316
end handler
317317

318318
public handler OnLoad(in pProperties as Array)
319-
put pProperties["array"] into mData
320319
put pProperties["selected row color"] into mSelectedRowColor
321320
put pProperties["read only"] into mReadOnly
322321

323-
if ["array style"] is in the keys of pProperties then
322+
if "array style" is among the keys of pProperties then
324323
put pProperties["array style"] into mArrayStyle
325324
end if
326325

327-
if ["sort ascending"] is in the keys of pProperties then
326+
if "sort ascending" is among the keys of pProperties then
328327
put pProperties["sort ascending"] into mSortAscending
329328
end if
330329

331-
if ["sort numeric"] is in the keys of pProperties then
330+
if "sort numeric" is among the keys of pProperties then
332331
put pProperties["sort numeric"] into mSortNumeric
333332
end if
333+
334+
setArrayData(pProperties["array"])
334335
end handler
335336

336337
public handler OnPaint() returns nothing

0 commit comments

Comments
 (0)