OSDN Git Service

Add option to start minimized.
[neighbornote/NeighborNote.git] / src / cx / fbn / nevernote / Global.java
index 654053b..02ec7e8 100644 (file)
@@ -656,6 +656,23 @@ public class Global {
                        settings.setValue("verifyDelete", "false");\r
                settings.endGroup();\r
     }\r
+    public static boolean startMinimized() {\r
+               settings.beginGroup("General");\r
+               String text = (String)settings.value("startMinimized", "false");\r
+               settings.endGroup();\r
+               if (text.equalsIgnoreCase("true"))\r
+                       return true;\r
+               else\r
+                       return false;           \r
+    }\r
+    public static void setStartMinimized(boolean val) {\r
+               settings.beginGroup("General");\r
+               if (val)\r
+                       settings.setValue("startMinimized", "true");\r
+               else\r
+                       settings.setValue("startMinimized", "false");\r
+               settings.endGroup();\r
+    }\r
     public static boolean synchronizeDeletedContent() {\r
                settings.beginGroup("General");\r
                String text = (String)settings.value("syncDeletedContent", "false");\r