Don't set preferences every time the app starts

This commit is contained in:
serso 2016-02-07 14:06:41 +01:00
parent 106783eee7
commit 01ef5838d3

View File

@ -64,6 +64,13 @@ public final class Preferences {
Gui.showFixableErrorDialog.putDefault(preferences);
Gui.lastPreferredPreferencesCheck.putDefault(preferences);
final Integer version = Preferences.appVersion.getPreference(preferences);
if (version == null) {
setInitialDefaultValues(preferences);
}
}
private static void setInitialDefaultValues(@Nonnull SharedPreferences preferences) {
if (!Engine.Preferences.groupingSeparator.isSet(preferences)) {
final Locale locale = Locale.getDefault();
if (locale != null) {