TagSpaces is an offline, open source, document manager with tagging support
settings: Cap max result to 2000 instead of setting limit to 0
Carl Helmertz83983086f0fc
diff --git a/data/js/settings.api.js b/data/js/settings.api.jsindex 460a63de4..1422cd276 100644--- a/data/js/settings.api.js+++ b/data/js/settings.api.js@@ -818,8 +818,10 @@ define(function(require, exports, module) {}function setMaxSearchResultCount(value) {- if (isNaN(value) || value < 0 || value > 2000) {- value = 0;+ if (isNaN(value) || value < 0) {+ value = exports.DefaultSettings.maxSearchResultCount;+ } else if (value > 2000) {+ value = 2000;}exports.Settings.maxSearchResultCount = value;}