Add method to check whether the first-start notification is displayed.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / WebInterface.java
index 5865f1d..5e3756d 100644 (file)
@@ -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
        //