X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FOptionsPage.java;h=5a9e165124739bb8564fad5a74926b2433d8ebf2;hb=0a409e106cabb724302bc47f2783ef03e164e5b9;hp=1a5fa6a6f2561c57fe0043a42e2d93338a466231;hpb=68882b660ba80ab62387fbcc3ae3392adf3a3e82;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/web/OptionsPage.java b/src/main/java/net/pterodactylus/sone/web/OptionsPage.java index 1a5fa6a..5a9e165 100644 --- a/src/main/java/net/pterodactylus/sone/web/OptionsPage.java +++ b/src/main/java/net/pterodactylus/sone/web/OptionsPage.java @@ -33,7 +33,9 @@ public class OptionsPage extends SoneTemplatePage { * Creates a new options page. * * @param template + * The template to render * @param webInterface + * The Sone web interface */ public OptionsPage(Template template, WebInterface webInterface) { super("options.html", template, "Page.Options.Title", webInterface); @@ -55,6 +57,8 @@ public class OptionsPage extends SoneTemplatePage { options.getIntegerOption("InsertionDelay").set(insertionDelay); } template.set("insertion-delay", options.getIntegerOption("InsertionDelay").get()); + template.set("clear-on-next-restart", options.getBooleanOption("ClearOnNextRestart").get()); + template.set("really-clear-on-next-restart", options.getBooleanOption("ReallyClearOnNextRestart").get()); } //