persist interface config
[jSite2.git] / src / net / pterodactylus / jsite / main / Main.java
index 39024ec..871db5f 100644 (file)
@@ -49,11 +49,14 @@ public class Main {
        private void start() {
                Core core = new Core();
 
-               ProjectManager projectManager = new ProjectManager(System.getProperty("user.home") + File.pathSeparator + ".jSite");
+               String configDirectory = System.getProperty("user.home") + File.separator + ".jSite";
+               
+               ProjectManager projectManager = new ProjectManager(configDirectory);
                core.setProjectManager(projectManager);
 
                SwingInterface swingInterface = new SwingInterface(core);
                core.addCoreListener(swingInterface);
+               swingInterface.setConfigDirectory(configDirectory);
                swingInterface.start();
 
                core.start();