triplus wrote: ↑Thu Mar 01, 2018 6:11 pm
I tested the latest changes and i see there is still a typo in preferences. FCBack instead of FCBak.
Ok I correct that.
triplus wrote: ↑Thu Mar 01, 2018 6:11 pm
The input field to add and format date stamp i guess is a nice addition. Users using more backup files can easily determine when a backup file was created. I purposely exceeded the -99 limit and got a pop-up informing me the save failed.
Ok I correct that. I must say that I did not imagine that more than 99 backups could have been requested.
There is no more limit but the system limits.
The message you saw is the kind of message that happen when there is a problem and the save did not go to the end.
triplus wrote: ↑Thu Mar 01, 2018 6:11 pm
I did detect some issues though. User can put just about anything in the input field. That by itself is not a bad thing. But when that happens, maximum number of backup files setting won't be respected anymore. In addition with default date stamp it can happen two save operations happen faster and therefore -1 is for example appended to the second file. That again will result in exceeding the maximum number of backup files setting. I am guessing you should change this logic and always do:
FileName + Stamp + Number + FCBak. And don't care about the user set Stamp part anymore. Just use the Number when checking if maximum number of backup files was reached or not. Basically like it works with the default solution. Now if this will introduce some of the "issues" back. You where after to resolve and feel the default option has. I don't know. But maximum number of backup files setting should i guess be detected more reliably.
Ok the issue is because of the freedom we gave the user to be able to identify what backup is linked to what document. I change the filter to identify the backups.
The user will be able to put anything as format. A "." will be replaced by "-". So between the base name of the file, and the extension, there will be not ".". If there is a “.”, it does not concern the same project. If there is no “.”, it can only concern this project. When there is a duplicate due to rapid saves for example, or to the format chosen by the user that can be a simple string, the a -1 -2 ... will be added.
That should solve completely the problems you identify, and make the checks simple. No need to count the characters as I tried to do, what became unsuccessful obviously with ta last opening given.
Let me some time to test before I publish this change. I will give you a go to test again.
Thanks for the time taken!