2022-11-09, 18:04
I would like to reset a dialog-type window with an ID, and I would like it to behave as if it were always the first time every time it is opened, so that I don't remember the last state.
Is it possible to have it reset every time when opening?
I know that kodi always remembers the last state of the windows, how do you prevent this in a particular window?
Instance:
<onunload>ClearProperty (Window ID) </onunload> (something like this ... )
It's not a question of resetting a position (which can be done with setfocus) but of a list with automatic set on the scrollbar, and every time the window is opened (where before it was gone up to the last element of the list NOT selectable) it goes in automatic scroll up bringing me back to the first element, the problem is that I would not like to see this automatic scroll that takes me back to the first element of the list, but it must already be at the first element of the list.
Thank you very much for any help
Is it possible to have it reset every time when opening?
I know that kodi always remembers the last state of the windows, how do you prevent this in a particular window?
Instance:
<onunload>ClearProperty (Window ID) </onunload> (something like this ... )
It's not a question of resetting a position (which can be done with setfocus) but of a list with automatic set on the scrollbar, and every time the window is opened (where before it was gone up to the last element of the list NOT selectable) it goes in automatic scroll up bringing me back to the first element, the problem is that I would not like to see this automatic scroll that takes me back to the first element of the list, but it must already be at the first element of the list.
Thank you very much for any help