Skip to content

Commit

Permalink
Avoids selection back to the top when remove item from my list
Browse files Browse the repository at this point in the history
  • Loading branch information
CastagnaIT committed Dec 22, 2020
1 parent 1607fc7 commit 9aa0c93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/lib/navigation/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ def my_list(self, videoid, pathitems):
operation = pathitems[1]
api.update_my_list(videoid, operation, self.params)
sync_library(videoid, operation)
if operation == 'remove' and common.WndHomeProps[common.WndHomeProps.CURRENT_DIRECTORY_MENU_ID] == 'myList':
common.json_rpc('Input.Down') # Avoids selection back to the top
common.container_refresh()

@common.inject_video_id(path_offset=1)
Expand Down

0 comments on commit 9aa0c93

Please sign in to comment.