I've been looking for a way to automatically set the extension of a
file when saving a plot via the navigationBar 'save' button. In my
case, when I change the file type, the extension of the default
filename ('image.png') won't change. I'd like it to change to the
extension of the file type I selected.