X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fcore%2FPreferences.java;h=73d964c7d66889de4c08c30a67bca42e5b0dc41f;hp=456e7f2fae994b6c0ad06fadb4117f3dad4a760f;hb=8bbda5586eb86696dc9c93fa379534b6d75c5272;hpb=c4ae226ec5052116cefc542ae2017036a7bc6332 diff --git a/src/main/java/net/pterodactylus/sone/core/Preferences.java b/src/main/java/net/pterodactylus/sone/core/Preferences.java index 456e7f2..73d964c 100644 --- a/src/main/java/net/pterodactylus/sone/core/Preferences.java +++ b/src/main/java/net/pterodactylus/sone/core/Preferences.java @@ -39,8 +39,6 @@ import com.google.common.eventbus.EventBus; /** * Convenience interface for external classes that want to access the core’s * configuration. - * - * @author David ‘Bombe’ Roden */ public class Preferences { @@ -105,6 +103,7 @@ public class Preferences { public Preferences setInsertionDelay(Integer insertionDelay) { this.insertionDelay.set(insertionDelay); eventBus.post(new InsertionDelayChangedEvent(getInsertionDelay())); + eventBus.post(new PreferenceChangedEvent("InsertionDelay", getInsertionDelay())); return this; } @@ -138,6 +137,7 @@ public class Preferences { */ public Preferences setPostsPerPage(Integer postsPerPage) { this.postsPerPage.set(postsPerPage); + eventBus.post(new PreferenceChangedEvent("PostsPerPage", getPostsPerPage())); return this; }