Fixing saving of project public visibility

In the master branch, the codes saves the current project public visibility setting instead of the inverse, which is what needs to be changed.

If you'd like a video or screenshots (read the contributing guidelines but this is a small change) please let me know and I'll get it up here soon.