Send generic “preference changed” event when changing insertion delay
[Sone.git] / src / main / java / net / pterodactylus / sone / core / Preferences.java
index 456e7f2..ce56e8b 100644 (file)
@@ -39,8 +39,6 @@ import com.google.common.eventbus.EventBus;
 /**
  * Convenience interface for external classes that want to access the core’s
  * configuration.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
  */
 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;
        }