From 10fcdec298ccef4971dc6d109222079a0f438004 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 9 Aug 2019 05:38:12 +0200 Subject: Do not allow search until results are available --- include/SearchBar.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/SearchBar.hpp b/include/SearchBar.hpp index f1ac3fd..46f4383 100644 --- a/include/SearchBar.hpp +++ b/include/SearchBar.hpp @@ -8,7 +8,8 @@ namespace QuickMedia { using TextUpdateCallback = std::function; - using TextSubmitCallback = std::function; + // Return true to consume the search (clear the search field) + using TextSubmitCallback = std::function; class SearchBar { public: -- cgit v1.2.3