Show notification only if there is no first-start notification.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 12 Dec 2010 13:45:41 +0000 (14:45 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 12 Dec 2010 13:45:41 +0000 (14:45 +0100)
src/main/java/net/pterodactylus/sone/web/WebInterface.java

index 76a18f9..4497019 100644 (file)
@@ -269,7 +269,7 @@ public class WebInterface implements CoreListener {
         *            {@code false} if the existing configuration could be read
         */
        public void setNewConfig(boolean newConfig) {
-               if (newConfig && hasFirstStartNotification()) {
+               if (newConfig && !hasFirstStartNotification()) {
                        Template configNotReadNotificationTemplate = new Template(createReader("/templates/notify/configNotReadNotification.html"));
                        Notification configNotReadNotification = new TemplateNotification("config-not-read-notification", configNotReadNotificationTemplate);
                        notificationManager.addNotification(configNotReadNotification);