Kodi Community Forum

Full Version: Possible to container.refresh in plugin and keep place in list?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is for a plugin. If I change an item in a list (ie. delete or rename) and do container.refresh then the currently selected item is reset to the first item in the list. If the list data doesn't actually change then the currently selected item stays selected. Is it possible to refresh the listing and keep the highlight on the currently selected list item? I've tried doing tricks with control.move/setfocus/message without success.
My guess is that it's because the currently selected item is not available anymore.