for #22785 re-add automatic adding of Project directory(s) to favorites.