From b5313d03641e21b2abfba01bd9454b89c6050fd0 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Fri, 31 May 2019 14:50:26 +0200 Subject: [PATCH] ConfigItems: use default value for items that req it --- src/be/nikiroo/utils/ui/ConfigItemBoolean.java | 2 +- src/be/nikiroo/utils/ui/ConfigItemColor.java | 2 +- src/be/nikiroo/utils/ui/ConfigItemInteger.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.27.0