From: Niki Roo Date: Fri, 31 May 2019 12:50:26 +0000 (+0200) Subject: ConfigItems: use default value for items that req it X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=b5313d03641e21b2abfba01bd9454b89c6050fd0;p=fanfix-jexer.git ConfigItems: use default value for items that req it --- diff --git a/src/be/nikiroo/utils/ui/ConfigItemBoolean.java b/src/be/nikiroo/utils/ui/ConfigItemBoolean.java index 4cba342..8ebb7d1 100644 --- a/src/be/nikiroo/utils/ui/ConfigItemBoolean.java +++ b/src/be/nikiroo/utils/ui/ConfigItemBoolean.java @@ -30,7 +30,7 @@ class ConfigItemBoolean> extends ConfigItem { @Override protected Object getFromInfo(int item) { - return info.getBoolean(item, false); + return info.getBoolean(item, true); } @Override diff --git a/src/be/nikiroo/utils/ui/ConfigItemColor.java b/src/be/nikiroo/utils/ui/ConfigItemColor.java index 68077f6..fa216cd 100644 --- a/src/be/nikiroo/utils/ui/ConfigItemColor.java +++ b/src/be/nikiroo/utils/ui/ConfigItemColor.java @@ -49,7 +49,7 @@ class ConfigItemColor> extends ConfigItem { @Override protected Object getFromInfo(int item) { - return info.getString(item, false); + return info.getString(item, true); } @Override diff --git a/src/be/nikiroo/utils/ui/ConfigItemInteger.java b/src/be/nikiroo/utils/ui/ConfigItemInteger.java index ebd7b03..06c903a 100644 --- a/src/be/nikiroo/utils/ui/ConfigItemInteger.java +++ b/src/be/nikiroo/utils/ui/ConfigItemInteger.java @@ -30,7 +30,7 @@ class ConfigItemInteger> extends ConfigItem { @Override protected Object getFromInfo(int item) { - return info.getInteger(item, false); + return info.getInteger(item, true); } @Override