From c48f80f292372fca7c1096bf2abac36c901b8cc4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 25 Oct 2010 11:48:51 +0200 Subject: [PATCH] Actually process the two clear-on-next-restart options. --- src/main/java/net/pterodactylus/sone/web/OptionsPage.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/net/pterodactylus/sone/web/OptionsPage.java b/src/main/java/net/pterodactylus/sone/web/OptionsPage.java index 5a9e165..e81bc4e 100644 --- a/src/main/java/net/pterodactylus/sone/web/OptionsPage.java +++ b/src/main/java/net/pterodactylus/sone/web/OptionsPage.java @@ -55,6 +55,10 @@ public class OptionsPage extends SoneTemplatePage { if (request.getMethod() == Method.POST) { Integer insertionDelay = Numbers.safeParseInteger(request.getHttpRequest().getPartAsStringFailsafe("insertion-delay", 16)); options.getIntegerOption("InsertionDelay").set(insertionDelay); + boolean clearOnNextRestart = Boolean.parseBoolean(request.getHttpRequest().getPartAsStringFailsafe("clear-on-next-restart", 5)); + options.getBooleanOption("ClearOnNextRestart").set(clearOnNextRestart); + boolean reallyClearOnNextRestart = Boolean.parseBoolean(request.getHttpRequest().getPartAsStringFailsafe("really-clear-on-next-restart", 5)); + options.getBooleanOption("ReallyClearOnNextRestart").set(reallyClearOnNextRestart); } template.set("insertion-delay", options.getIntegerOption("InsertionDelay").get()); template.set("clear-on-next-restart", options.getBooleanOption("ClearOnNextRestart").get()); -- 2.7.4