Save preferences from UI controls, globally or for a specified layer.
@param layerName The GPX layer name. Can be {@code null}, in that case, global preferences are written
@param locLayer {@code true} if the GPX layer is a local one. Ignored if {@code layerName} is null
@return {@code true} when restart is required, {@code false} otherwise
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.