From: David ‘Bombe’ Roden Date: Wed, 24 Nov 2010 12:06:45 +0000 (+0100) Subject: Always persist the changed configuration. X-Git-Tag: 0.3.1-RC1~32 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=1560f4504a62ebef0bb6fa3fb1f08b35789ea7dd;p=Sone.git Always persist the changed configuration. --- diff --git a/src/main/java/net/pterodactylus/sone/web/OptionsPage.java b/src/main/java/net/pterodactylus/sone/web/OptionsPage.java index 29ac52b..77f1a07 100644 --- a/src/main/java/net/pterodactylus/sone/web/OptionsPage.java +++ b/src/main/java/net/pterodactylus/sone/web/OptionsPage.java @@ -61,6 +61,7 @@ public class OptionsPage extends SoneTemplatePage { options.getBooleanOption("ClearOnNextRestart").set(clearOnNextRestart); boolean reallyClearOnNextRestart = Boolean.parseBoolean(request.getHttpRequest().getPartAsStringFailsafe("really-clear-on-next-restart", 5)); options.getBooleanOption("ReallyClearOnNextRestart").set(reallyClearOnNextRestart); + webInterface.getCore().saveConfiguration(); throw new RedirectException(getPath()); } template.set("insertion-delay", options.getIntegerOption("InsertionDelay").get());