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?

]]>

2 Commentsto Perhaps I’m doing something wrong but:

  1. Anonymous says:

    < ![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?

    ]]>

  2. Anonymous says:

    < ![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).

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *