OSDN Git Service

自動ログインのデフォルトをfalseに戻した。
authoryuki <kimaira7@gmail.com>
Wed, 10 Jul 2013 08:38:50 +0000 (17:38 +0900)
committeryuki <kimaira7@gmail.com>
Wed, 10 Jul 2013 08:38:50 +0000 (17:38 +0900)
src/cx/fbn/nevernote/Global.java

index 95b7850..544d3cf 100644 (file)
@@ -611,14 +611,14 @@ public class Global {
     public static boolean automaticLogin() {
        try {
                settings.beginGroup("General");
     public static boolean automaticLogin() {
        try {
                settings.beginGroup("General");
-               String text = (String)settings.value("automaticLogin", "true");
+               String text = (String)settings.value("automaticLogin", "false");
                settings.endGroup();
                if (text.equalsIgnoreCase("true"))
                        return true;
                else
                        return false;           
        } catch (java.lang.ClassCastException e) {
                settings.endGroup();
                if (text.equalsIgnoreCase("true"))
                        return true;
                else
                        return false;           
        } catch (java.lang.ClassCastException e) {
-               Boolean value = (Boolean) settings.value("automaticLogin", true);
+               Boolean value = (Boolean) settings.value("automaticLogin", false);
                settings.endGroup();
                return value;
        }
                settings.endGroup();
                return value;
        }