I added a zerotimer to make the sidebar emit currentChanged only after it has been updated as pressed.