I’m using FileChooser::.browseForFileToSave(true) in the process of saving off a PropertiesFile. In creating the FileChooser I specify a path and a file name, something like foo.set
If foo.set is already in the directory the dialog shows upon opening, and the user types “foo” in as the file name to save, I don’t see the warning sheet appear asking if the user wants to overwrite the existing file.
I do see the warning if I type in “foo.set” in the dialog.
This seems a little deceiving. If I type “foo”, the new file will replace “foo.set”, but I won’t get warned. If I type “foo.set”, I will get warned, but the file doesn’t get saved to “foo.set.set”.
Does all this make sense? Is there a way to add the file extension to the check being made for overwriting an existing file?