From: David ‘Bombe’ Roden Date: Sun, 12 Dec 2010 13:45:41 +0000 (+0100) Subject: Show notification only if there is no first-start notification. X-Git-Tag: beta-freefall-0.6.2-1~197^2~2 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a9db7695f0fe18eac0f8d06eca34650c488f13b5;p=Sone.git Show notification only if there is no 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 76a18f9..4497019 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 && 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);