From ab51c9a29de524b8319cee262b6ecea2a5283d30 Mon Sep 17 00:00:00 2001 From: jascotty2 Date: Fri, 11 Oct 2019 16:19:37 -0500 Subject: [PATCH] get/set for loadComments config setting --- .../java/com/songoda/core/configuration/Config.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Core/src/main/java/com/songoda/core/configuration/Config.java b/Core/src/main/java/com/songoda/core/configuration/Config.java index b5dad28e..d7909b19 100644 --- a/Core/src/main/java/com/songoda/core/configuration/Config.java +++ b/Core/src/main/java/com/songoda/core/configuration/Config.java @@ -176,6 +176,19 @@ public class Config extends ConfigSection { return this; } + public boolean getLoadComments() { + return loadComments; + } + + /** + * Should comments from the config file be loaded when loading? + * + * @param loadComments set to false if you do not want to preserve node comments + */ + public void setLoadComments(boolean loadComments) { + this.loadComments = loadComments; + } + public boolean getAutosave() { return autosave; }