Limit number of tasks when limiting query threads

This commit is contained in:
M66B
2020-07-11 17:22:45 +02:00
parent 923c4a26eb
commit 8f2ba5450a
3 changed files with 18 additions and 4 deletions

View File

@@ -289,6 +289,10 @@ public class ApplicationEx extends Application {
editor.putString("subject_ellipsize", "middle");
if (!prefs.contains("auto_optimize"))
editor.putBoolean("auto_optimize", false);
} else if (version < 1253) {
int threads = prefs.getInt("query_threads", 4);
if (threads == 4)
editor.remove("query_threads");
}
if (version < BuildConfig.VERSION_CODE)