Sometimes a newly created item disappears again after running a script by positionchanged event immediately after…
Sometimes a newly created item disappears again after running a script by positionchanged event immediately after creating it.
]]>
« I’m looking for help with this launcher.. Lessons maybe? Thanks :) (Previous Post)
(Next Post) Video to my latest bug report. »
< ![CDATA[
And sometimes a deleted item reappears in the same scenario, but it then has no icon
]]>
< ![CDATA[
Does it involves setting the container properties somewhere else in the script ?
More generally, does the script trigger a reload of the container somehow ? It could explain that the item is added but the list of items is not saved as it should before the container is reloaded.
The “no icon” symptom makes me think that not everything has been saved, now I have troubles to understand why and in which situation exactly. Are you able to reproduce this ?
]]>
< ![CDATA[
Almost everything can be set by this script.
Container, Item Properties,…
I can’t determine what exactly is set in this moment…
Yes, I am able to reproduce it. Thats how I got that video
]]>
< ![CDATA[
I was able to fix these two bugs by calling LL.save() at the beginning of the script. It makes it laggy, but none of these bugs occur anymore…
Can you tell me before which calls I should call save()?
I don’t want to call it generally, because it makes it laggy as I said.
]]>
< ![CDATA[
Before any action that will trigger a reload of the container. A reload is done when all items need to be updated. For instance if you change the icon scale at the container level, it will drop all items at once and reload them all. How to reproduce the bug ?
]]>
< ![CDATA[
Pierre Hébert
I’ve sent you a mail.
]]>
< ![CDATA[
The exact command line causing this was:
c.getProperties().edit().setString(“scrollingDirection”,whatever).commit();
]]>