Use new method to check for first-start notification.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 12 Dec 2010 13:38:33 +0000 (14:38 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 12 Dec 2010 13:38:33 +0000 (14:38 +0100)
src/main/java/net/pterodactylus/sone/web/WebInterface.java

index 5e3756d..e97020d 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 && (notificationManager.getNotification("first-start-notification") == null)) {
+               if (newConfig && hasFirstStartNotification()) {
                        Template configNotReadNotificationTemplate = new Template(createReader("/templates/notify/configNotReadNotification.html"));
                        Notification configNotReadNotification = new TemplateNotification("config-not-read-notification", configNotReadNotificationTemplate);
                        notificationManager.addNotification(configNotReadNotification);