If enabled, File->Versions->"Always save a new version on closing" does not save a new version if, when closing a file that has changes, you click "Don't Save". My understanding from this: https://help.libreoffice.org/latest/en-US/text/shared/01/01190000.html?&DbPAR=SHARED&System=UNIX ...is that it should do so. If that's not the case, I believe it should do so (in cases where "Don't Save" is clicked by accident, as I recently did and lost a lot of work.) Tested in LibreOffice Writer on Kubuntu 23.04, v7.5.5.2
I confirm the behaviour in 7.6.1, but my gut feeling is that we should keep it as it is currently: if the user takes the _explicit_ action "don't save", we should respect that. But it means the feature "always save a version on closing" could be labelled better, maybe "Always save a version when closing and saving". And the documentation does not correspond to current behaviour: https://help.libreoffice.org/7.6/en-US/text/shared/01/01190000.html (Just noting that versioning and filesave are not independent: saving a version automatically saves the file. So saying "I don't want to save the changes" necessarily means "I don't want to save a version".) Marking as "new" as something needs to be done in any case. Either change the behaviour to match the label and documentation, or vice-versa.
I guess it comes down to whether the versioning system is just a way to explicitly and intentionally save versions, or a way to guard against work/data loss. Sounds like it is intended more as the former. If it's also intended as the latter, I'd advocate for saving a version regardless (maybe an extra option in the dialog for that, if it doesn't feel too complicated/bloaty), but I do understand your reasoning re: the user saying "do not save". It's just the accidental click that I'm thinking of. I like the re-phrase you suggest: "Always save a version when closing and saving". Thanks for the attention to it.
"Always save version when closing If you have made changes to your document, LibreOffice automatically saves a new version when you close the document. If you save the document manually, do not change the document after saving, and then close, no new version will be created." From what I understand: - if I work on something and dont save manually, but close the document, and LibreOffice is asking me to save, and I save, I will have a new version. I checked that. - if I work and save manually, no new version is created. It's a little bit strange but this is how it is working right now. What I want to add, is that if it will save a new version each time we save a document, my document will not fit on a hard drive. A 50 MB document will became 100 MB after 5 seconds if we press Ctrl+S, 150 MB after the second Ctrl+S and so on... So, maybe this was a way of limiting the increasing size of the document with verion control.