WIP: fix publish/unpublish for deselected items [skip ci]