From: David ‘Bombe’ Roden Date: Sun, 9 Jan 2011 11:09:42 +0000 (+0100) Subject: Store version of configuration in the configuration. X-Git-Tag: 0.3.6.5^2~2 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c1649446e1e295c8d71e231d734293da851f9054;p=Sone.git Store version of configuration in the configuration. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 1a92901..493221b 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -1430,6 +1430,7 @@ public class Core implements IdentityListener { /* store the options first. */ try { + configuration.getIntValue("Option/ConfigurationVersion").setValue(0); configuration.getIntValue("Option/InsertionDelay").setValue(options.getIntegerOption("InsertionDelay").getReal()); configuration.getBooleanValue("Option/SoneRescueMode").setValue(options.getBooleanOption("SoneRescueMode").getReal()); configuration.getBooleanValue("Option/ClearOnNextRestart").setValue(options.getBooleanOption("ClearOnNextRestart").getReal());