Save preferences when skipping or hiding directories.