Update toggle cache when clicking OK

This ensures that you can then hit Cancel again and the content will be
swapped with the last OKed value.