I’m %90 sure that the problem is not with array issues. Array contains key ids in the array data. When I want to add to list widget it’s writing below the last data.
It’s like
1: When I have no key when I press the button, nothing appears = that’s normal
2: When I pickup the first key it says key1 which is normal
3: But when I pickup the second key it says key1 key1 key2. It’s not updating the list, its writing the array items below it.
Thanks for the advice tho. I’ll consider to use sets.