Add notification on a first start of Sone.
[Sone.git] / src / main / java / net / pterodactylus / sone / main / SonePlugin.java
index fbf8b1a..ca629fa 100644 (file)
@@ -147,6 +147,7 @@ public class SonePlugin implements FredPlugin, FredPluginL10n, FredPluginBaseL10
                /* create a configuration. */
                Configuration oldConfiguration;
                Configuration newConfiguration = null;
+               boolean firstStart = !new File("sone.properties").exists();
                try {
                        oldConfiguration = new Configuration(new MapConfigurationBackend(new File("sone.properties"), false));
                        newConfiguration = oldConfiguration;
@@ -181,6 +182,7 @@ public class SonePlugin implements FredPlugin, FredPluginL10n, FredPluginBaseL10
 
                /* create the web interface. */
                webInterface = new WebInterface(this);
+               webInterface.setFirstStart(firstStart);
                core.addCoreListener(webInterface);
 
                /* create the identity manager. */