aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-08-09 05:38:12 +0200
committerdec05eba <dec05eba@protonmail.com>2019-08-09 05:38:14 +0200
commit10fcdec298ccef4971dc6d109222079a0f438004 (patch)
tree90124b9d9cfd51c582d4d212c08cd17893d0f4ea /include
parent452311e6bf54368a9dac94c8ee973febf015dfd1 (diff)
Do not allow search until results are available
Diffstat (limited to 'include')
-rw-r--r--include/SearchBar.hpp3
1 files changed, 2 insertions, 1 deletions
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<void(const sf::String &text)>;
- using TextSubmitCallback = std::function<void(const sf::String &text)>;
+ // Return true to consume the search (clear the search field)
+ using TextSubmitCallback = std::function<bool(const sf::String &text)>;
class SearchBar {
public: