From: David ‘Bombe’ Roden Date: Sun, 12 Dec 2010 13:38:18 +0000 (+0100) Subject: Add method to check whether the first-start notification is displayed. X-Git-Tag: beta-freefall-0.6.2-1~197^2~5 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=40ef1d6811ccccb8e1c559ee3747f0f4405297c7;p=Sone.git Add method to check whether the first-start notification is displayed. --- diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java index 5865f1d..5e3756d 100644 --- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java +++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java @@ -277,6 +277,20 @@ public class WebInterface implements CoreListener { } // + // PRIVATE ACCESSORS + // + + /** + * Returns whether the first start notification is currently displayed. + * + * @return {@code true} if the first-start notification is currently + * displayed, {@code false} otherwise + */ + private boolean hasFirstStartNotification() { + return notificationManager.getNotification("first-start-notification") != null; + } + + // // ACTIONS //