I changed a primitive mesh, need to restore it to defaults.
Every time you add a new primitive object you get this little window (if it's closed, click on the + icon), in which you can set all preferences.

The window disappears after you perform any operation.



In the file menu you have also the option "Load factory settings" to restore all preference changes to their default value.