Perhaps I’m doing something wrong but:
Perhaps I’m doing something wrong but:
Why setBoxBackground() is not persistent?
If you have an item with a normal background set to ImageA from the customize/more lightning UI, and then you run item.setBoxBackground(ImageB,”n”);LL.save(); the image is changed, but if you restart the launcher it goes back to ImageA.
Is this a bug?
]]>« Proof-of-concept: get and display the current image from any item (Previous Post)
(Next Post) LL Matters again ;-) »
< ![CDATA[
Oh yes, it looks like a bug: I think the “modified” flag is not set in this case. Most probably changing another property would trigger the proper saving of ImageB.
And I even wonder whether this bug has not been reported earlier?
]]>
< ![CDATA[
In the end this was more complex than I thought, but the good news is that I just fixed the bug. However the behavior of this method will change: instead of changing the item box, which is possibly shared because inherited from the container, it will now configure the individual item (some kind of copy on write).
]]>