From 34be329370ae8e39df260e366c4128f9a5d79b78 Mon Sep 17 00:00:00 2001 From: 0neGal Date: Sat, 21 May 2022 20:59:41 +0200 Subject: fixed infinite loading depending on the filters If the only results when searching are elements that are filtered then it just infinitely shows loading instead showing "No results..." --- src/app/browser.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/browser.js b/src/app/browser.js index 0ec8746..b653e48 100644 --- a/src/app/browser.js +++ b/src/app/browser.js @@ -173,6 +173,10 @@ var Browser = { new BrowserElFromObj(res[i].item); count++; } + + if (count < 1) { + Browser.loading(lang("gui.browser.noresults")); + } }, setbutton: (mod, string) => { mod = normalize(mod); -- cgit v1.2.3