Saves the this with the given name to the memory.
This will set dirty to true.
true
See also save_to_file.
The dock item.
The name of the layout to save or null for a default layout name.
null