Upgrade: disabled text styles when monospaced enabled

This commit is contained in:
M66B 2020-06-30 09:48:42 +02:00
parent 9b861418f2
commit 4b96f6830f
1 changed files with 5 additions and 0 deletions

View File

@ -280,6 +280,11 @@ public class ApplicationEx extends Application {
editor.remove("background_service");
} else if (version < 1195)
editor.remove("auto_optimize");
else if (version < 1229) {
boolean monospaced = prefs.getBoolean("monospaced", false);
if (monospaced && !BuildConfig.DEBUG)
editor.putBoolean("text_font", false);
}
if (version < BuildConfig.VERSION_CODE)
editor.putInt("previous_version", version);