When backing up the configuration file, append the current timestamp at the end instead of a '~'

This commit is contained in:
Bane Stojkovic
2023-03-28 16:35:40 +02:00
parent c3f9208ab7
commit e0d2964e12
5 changed files with 5 additions and 3 deletions
Binary file not shown.
@@ -4322,6 +4322,10 @@
<changeType>NEW_FEATURE</changeType> <changeType>NEW_FEATURE</changeType>
<description>Title Block added as one of factory building blocks (was missing in 4.35 by mistake)</description> <description>Title Block added as one of factory building blocks (was missing in 4.35 by mistake)</description>
</org.diylc.appframework.update.Change> </org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>NEW_FEATURE</changeType>
<description>Configurable max switch combination count for circuit analysis (using org.diylc.maxSwitchCombinations argument)</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change> <org.diylc.appframework.update.Change>
<changeType>BUG_FIX</changeType> <changeType>BUG_FIX</changeType>
<description>General application slowness when Inductor component is added to the drawing</description> <description>General application slowness when Inductor component is added to the drawing</description>
Binary file not shown.
Binary file not shown.
@@ -230,9 +230,7 @@ public class DIYLCStarter {
if (ConfigurationManager.getInstance().isFileWithErrors()) if (ConfigurationManager.getInstance().isFileWithErrors())
mainFrame.showMessage("<html>" mainFrame.showMessage("<html>"
+ "There was an error reading the configuration file and it was replaced by a default configuration.<br>" + "There was an error reading the configuration file and it was replaced by a default configuration.<br>"
+ "The backup file is created and placed in user directory under '.diylc' sub-directory with '~' at the end.<br>" + "The backup file is created and placed in user directory under 'diylc' sub-directory with the current timestamp at the end.<br>"
+ "This can happen when running two versions of DIYLC on the same machine at the same time.<br>"
+ "Replace the main 'config.xml' file with the backup when running the latest version of DIYLC."
+ "</html>", "Warning", IView.WARNING_MESSAGE); + "</html>", "Warning", IView.WARNING_MESSAGE);
} }