Set preferences panel to close when submitted.
raedwars
Merge pull request #298 from zoccihedron/fix-issue273

Fix Issue #273: Set preferences panel to close when submitted.