From: David ‘Bombe’ Roden Date: Sun, 12 Dec 2010 13:38:33 +0000 (+0100) Subject: Use new method to check for first-start notification. X-Git-Tag: beta-freefall-0.6.2-1~197^2~4 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=50d500f9cc084dc74a03f0344ffc5a0507726057;p=Sone.git Use new method to check for first-start notification. --- diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java index 5e3756d..e97020d 100644 --- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java +++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java @@ -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);