From 03a228f81f4a7a827a5a383bc16b8a2fb3abadb4 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 9 Jul 2020 05:59:39 +0200 Subject: Fix item selection not working with empty search Fix history not working on mangatown. Make image scrolling faster in infinite scroll mode. --- src/Body.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/Body.cpp') diff --git a/src/Body.cpp b/src/Body.cpp index 54134b6..da7152d 100644 --- a/src/Body.cpp +++ b/src/Body.cpp @@ -346,4 +346,12 @@ namespace QuickMedia { item->visible = string_find_case_insensitive(item->title, text); } } + + bool Body::no_items_visible() const { + for(auto &item : items) { + if(item->visible) + return false; + } + return true; + } } \ No newline at end of file -- cgit v1.2.3