From a9db7695f0fe18eac0f8d06eca34650c488f13b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 12 Dec 2010 14:45:41 +0100 Subject: [PATCH] Show notification only if there is no first-start notification. --- src/main/java/net/pterodactylus/sone/web/WebInterface.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.7.4